ErrorsEntities, stores and migrations · rule
data.entity_in_field
Field holds an entity instead of a reference to one.
Area 5, Entities, stores and migrations; not declinable; the next step is usually the agent's.
entity User { id: Uuid}entity Todo { id: Uuid keeper: User}
error Todo.keeper holds a whole User
--> main.jadpo:7:13
|7 | keeper: User | ^^^^ a `User` record
- reason
- An entity value is a snapshot, never stored inside another record; a field refers to a record by its identity,
User.id, which the database keeps as a foreign key. - next
- Store
User.idinstead (agent) - rule
- data.
entity_ in_ field - help
- https://jadpo.
dev/docs/errors/data. entity_ in_ field
Markdown for agents: /docs/errors/data.entity_in_field.md.Built from Jadpo main at aee2e8f.