ErrorsReads and writes · rule
query.result_field
Result type has a field the entity cannot fill.
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}type BookCard = Output { pick: [Book.id, Book.title] author: Title}query cards() -> List<BookCard> { from: Book order: [Book.title asc] limit: 20}
error BookCard.author isn't a field of Book, or an include
--> main.jadpo:17:18
|17 | query cards() -> List<BookCard> { | ^^^^^^^^^^^^^^ `author` can't be filled
- reason
- A query fills its result's fields from
Book's fields of the same name (id,title,subtitleandavailable) and from its includes; nothing givesauthor. - next
- Remove
authorfromBookCard, or include records under it (agent) - rule
- query.
result_ field - help
- https://jadpo.
dev/docs/errors/query. result_ field
Markdown for agents: /docs/errors/query.result_field.md.Built from Jadpo main at aee2e8f.