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

    Greater or less than

    Compare numbers, text, dates and times.

    estimate=gt.2created_at=lt.2026-01-03name=gte.m

    gt and lt are strict; gte and lte include the value itself. Dates and times are written in ISO 8601, as in 2026-01-03 or 2026-01-03T09:00:00Z.

    Text compares in the database's order, so name=gte.m keeps the names from m onwards.

    Examples

    Todos estimated at two and a half hours or more.
    /todos?select=name,estimate&estimate=gte.2.5

    Asking the database...

    Todos created before 3 January 2026.
    /todos?select=name,created_at&created_at=lt.2026-01-03

    Asking the database...

    See alsoSort the rows
    PreviousEqual, not equalNext One of a list
    restloom - a REST API generated from your database catalog
    DocumentationDownloadSource