Learn / Glossary
foldkit-entity: the domain
| Term | What it is |
|---|---|
| Entity | A named record type with an id, declared once with Entity.define, and read by Remote, the Drizzle binding and forms. The package |
| Relation | A field that refers to another Entity (Relation.one, Relation.many), stored as a ref key such as 'User:u1', never a copy. |
| Selection | Exactly which fields of an Entity, and through which relations, a consumer needs; it decodes to that shape. Entity.select. |
| Query body | What 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. |