ErrorsReads and writes · rule
query.from_not_entity
Query reads something that is not an entity.
Area 6, Reads and writes; not declinable; the next step is usually the agent's.
type Title = Text { max_length: 80}entity Book { id: Uuid title: Title subtitle: Title? available: Bool}query titles(title: Book.title) -> List<Book> { from: Title order: [Book.id asc] limit: 20}
error from: names Title, which isn't an entity
--> main.jadpo:13:11
|13 | from: Title | ^^^^^ not an entity
- reason
Titleis a type; a query reads stored records, sofrom:names an entity declared in the domain'sentities/folder.- next
- Name the entity the query reads (agent)
- rule
- query.
from_ not_ entity - help
- https://jadpo.
dev/docs/errors/query. from_ not_ entity
Markdown for agents: /docs/errors/query.from_not_entity.md.Built from Jadpo main at aee2e8f.