ErrorsReads and writes · rule
query.aggregate_unknown
Aggregate entry is not count, sum, min, max or average.
Area 6, Reads and writes; not declinable; the next step is usually the agent's.
type LeafCount = Int { min: 1}entity Book { id: Uuid leaves: LeafCount}type ShelfLength = Output { mean_leaves: Decimal?}query shelf_length() -> ShelfLength { from: Book aggregate: { mean_leaves: avg(Book.leaves, scale: 1, rounding: Rounding.half_up) }}
error avg isn't an aggregate
--> main.jadpo:17:22
|17 | mean_leaves: avg(Book.leaves, scale: 1, rounding: Rounding.half_up) | ^^^ not an aggregate
- reason
- An aggregate is
count(),sum(F),min(F),max(F)oraverage(F, scale:, rounding:), eachFa field ofBook. Did you meanaverage? - next
- Use
average(agent) - rule
- query.
aggregate_ unknown - help
- https://jadpo.
dev/docs/errors/query. aggregate_ unknown
Markdown for agents: /docs/errors/query.aggregate_unknown.md.Built from Jadpo main at aee2e8f.