Queries (JSON)
POST
/api/collections/data/fetch/queryLast modified:Â 4 months ago
Request
Body Params application/json
collection
stringÂ
required
query
array [object {3}]Â
required
field
stringÂ
required
operator
stringÂ
required
value
stringÂ
required
format
stringÂ
required
The output format. It can be a JSON
, file
and stream
.
compounding
stringÂ
optional
orderType
stringÂ
optional
orderBy
stringÂ
optional
limit
integerÂ
optional
startAfter
integerÂ
optional
Example
{
"collection": "datalogs",
"query": [
{
"field": "processingTime",
"operator": ">=",
"value": "1000"
},
{
"field": "level",
"operator": "==",
"value": "ERROR"
}
],
"compounding": "AND",
"orderType": "DESC",
"orderBy": "docCreatedAt",
"limit": 100,
"startAfter": 0,
"format": "json"
}
Request samples
Responses
OK(200)
Bad Request(400)
HTTP Code:Â 200
Content Type :Â JSONapplication/json
Data Schema
data
array [object {3}]Â
required
data 1
stringÂ
required
data 2
stringÂ
required
data 3
stringÂ
required
collection
stringÂ
required
processingTime
numberÂ
required
processingId
stringÂ
required
Example
{
"data": [
{
"data 1": "Ut dolor do in enim",
"data 2": "Lorem eu voluptate",
"data 3": "adipisicing aliquip nisi"
},
{
"data 1": "consequat nostrud",
"data 2": "laboris nostrud",
"data 3": "sunt voluptate irure est mollit"
}
],
"collection": "sed do tempor non",
"processingTime": 5631.01010932,
"processingId": "consequat ut minim amet"
}
Last modified: 4 months ago