REST from your database catalog
    DocumentationCheat sheetQuestionsDownloadSource
    Questions
    • How do I...?
    Start here
    • Getting started
    • What a table becomes
    • Compared with PostgREST
    Setting up
    • Tables, columns and relations
    • Security and hooks
    • Writes and procedures
    • Prefer: return=representation
    • Node, Fastify, Express
    Reading
    • select
    • /{key}
    • relation(...)
    • order
    • limit, offset
    • relation.order, .limit
    • count
    • count(), sum(), avg()...
    • "name"
    Filtering
    • eq, neq
    • gt, gte, lt, lte
    • in
    • like, ilike
    • match, imatch
    • is
    • ov, cs, cd
    • not
    • relation.column
    • or, and
    Databases
    • Supported databases
    • Adding a database
    Reference
    • Cheat sheet
    • Errors
    Filtering

    Turn a filter around

    Put not. before any operator to keep the rows it would have left out.

    status=not.eq.doneid=not.in.(1,2)tags=not.is.empty

    not. reverses a single filter. On a to-many relation it reads as "none": tags.name=not.eq.work keeps the todos with no work tag, including those with no tag at all.

    not.or and not.and reverse a whole group.

    Examples

    Every todo except 1 and 2.
    /todos?select=name&id=not.in.(1,2)

    Asking the database...

    Todos with no work tag, the untagged one included.
    /todos?select=name&tags.name=not.eq.work

    Asking the database...

    See alsoFilter through a relation Either-or
    PreviousArray overlap and containmentNext Filter through a relation
    restloom - a REST API generated from your database catalog
    DocumentationDownloadSource