ErrorsReads and writes · rule
query.limit_unbounded
Query limit or page size comes from a value with no maximum.
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 Count = Int { min: 1}query shelf(count: Count) -> List<Book> { from: Book order: [Book.title asc] limit: count}
error count has no maximum, so the limit has no bound
--> main.jadpo:19:12
|19 | limit: count | ^^^^^ `Count` has no `max:`
- reason
- Every list is bounded:
limit:is a number, or a value whose type has amax:, such as the built-inPageSize(1 to 100). - next
- Type the value as
PageSize, or as anInttype of your own with amax:(agent) - rule
- query.
limit_ unbounded - help
- https://jadpo.
dev/docs/errors/query. limit_ unbounded
Markdown for agents: /docs/errors/query.limit_unbounded.md.Built from Jadpo main at aee2e8f.