Jadpo is experimental and not ready for production. These docs follow the compiler's main branch as of 30 Oct 2026. What's built · Install 0.1.0
jadpo
Reference: Reads and writes

Reads and writes · rule

query.optional_value

Condition compares with a value that may be absent, or where_present: with one that is always there.

Area 6, Reads and writes; not declinable; the next step is usually the agent's.

example
type Title = Text {    max_length: 80}entity Book {    id: Uuid    title: Title    subtitle: Title?    available: Bool}type FindBooks = Input {    title: Title {        optional: true    }}query find_books(filter: FindBooks) -> List<Book> {    from: Book    where: Book.title == filter.title    order: [Book.id asc]    limit: 20}
text
error: `filter.title` may be absent, so this `where:` line can't always be met --> main.jadpo:20:26   |20 |     where: Book.title == filter.title   |                          ^^^^^^^^^^^^ may be `none`  reason: A `where:` line applies to every call; a condition that should apply only when its value is there, as a request's optional filter, is written with `where_present:`.  next: Write `where_present:` for this condition (agent)  rule: query.optional_value  help: https://jadpo.dev/docs/errors/query.optional_valuecheck failed: 1 error, 1 file

Markdown for agents: /docs/errors/query.optional_value.md.Built from Jadpo main at a707efb.