v1
latestOpenAPI 3.0.32026-07-2652928.6 KBQuery documents in a collection using a flexible query language. This endpoint supports pagination, sorting, and complex queries to help you efficiently retrieve exactly the data you need.
post/store/find
Headers
X-DITTO-TXN-IDinteger
Optional transaction ID that ensures read consistency. The operation will only proceed if the Big Peer's transaction ID is at least this value, preventing reads of stale data.
Request body
Example request
{
"collection": "people",
"query": "favoriteBook.title == 'The Great Gatsby'"
}Response
The query executed successfully. Returns an array of matching documents and the transaction ID of the read operation. If no documents match, the documents array will be empty.
Example response
{
"documents": {
"id": 1,
"contents": {
"name": "Francis",
"favoriteBook": {
"title": "The Great Gatsby",
"published": 1925
}
}
},
"txnId": 9000
}