ErrorsReads and writes · rule
query.include_unknown
Include names no reference to or from the 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}type ShelfCard = Output { pick: [Book.id] name: Title}query cards() -> List<ShelfCard> { from: Book order: [Book.title asc] limit: 20 include: { name: Book.title }}
error Book.title isn't a reference to or from Book
--> main.jadpo:22:15
|22 | name: Book.title | ^^^^^^^^^^ not a reference
- reason
- An include follows a reference: one of
Book's own gives the record it points at, and another entity's reference toBookgives the records that point here. No reference leads to or fromBook. - next
- Add a reference field, or read the records with a query of their own (agent)
- rule
- query.
include_ unknown - help
- https://jadpo.
dev/docs/errors/query. include_ unknown
Markdown for agents: /docs/errors/query.include_unknown.md.Built from Jadpo main at aee2e8f.