Skip to content

The query language

A query is one JSON object, sent as POST /rel. Every page in this section covers one part of that object — there's no separate "read" and "write" grammar; the same tree does both (see Writing data back).

Examples throughout use the hotel-booking schema from Getting started: hotel.chainshotel.propertieshotel.room_typeshotel.rooms, and hotel.guestshotel.bookingshotel.payments. Database reference has the full diagram if you want the whole shape at a glance before diving in. Query shape reference does the same for the query language itself — the whole thing in one page — before the rest of this section walks through it by example.

In this section