Learn / Glossary

foldkit-entity: the domain

TermWhat it is
EntityA named record type with an id, declared once with Entity.define, and read by Remote, the Drizzle binding and forms. The package
RelationA field that refers to another Entity (Relation.one, Relation.many), stored as a ref key such as 'User:u1', never a copy.
SelectionExactly which fields of an Entity, and through which relations, a consumer needs; it decodes to that shape. Entity.select.
Query bodyWhat a query means, as a value: Query.define(name, Input, ({ input }) => …) with Expr predicates and an order. Compiled to SQL on a server, run over rows by evaluate.