Reads and writes · rule
query.order_field
Field cannot be in a query's order.
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 shelf() -> List<Book> { from: Book order: [Book.available desc] limit: 20}
error: Records can't be sorted by `Book.available` --> main.jadpo:14:13 |14 | order: [Book.available desc] | ^^^^^^^^^^^^^^^^^^^ `Bool` reason: A query sorts by numbers, times, dates, durations, quantities, percentages, text and identities, which the database and Jadpo order the same way; `Book.available` is `Bool`. next: Sort by another field (agent) rule: query.order_field help: https://jadpo.dev/docs/errors/query.order_fieldcheck failed: 1 error, 1 file
Markdown for agents: /docs/errors/query.order_field.md.Built from Jadpo main at a707efb.