DB.FETCH
POST
To retrieve one or multiple documents in a collection.
Request
- application/json
Body
action stringrequired
Default value: db.fetch
The action
collection stringrequired
The collection name
matches objectrequired
The matches criteria
sort string
Default value: _created_at:desc
limit integer
offset integer
Default value: 100
Responses
- 200
Query response
- application/json
- Schema
- Example (from schema)
Schema
data object[]
meta object
pagination object
page integer
per_page integer
total_pages integer
size integer
count integer
has_next boolean
next_page integer
has_prev boolean
prev_page integer
page_showing_start integer
page_showing_end integer
{
"data": [
{}
],
"meta": {
"pagination": {
"page": 0,
"per_page": 0,
"total_pages": 0,
"size": 0,
"count": 0,
"has_next": true,
"next_page": 0,
"has_prev": true,
"prev_page": 0,
"page_showing_start": 0,
"page_showing_end": 0
}
}
}
Loading...