DB.COUNT
POST
To count documents in a collection
Request
- application/json
Body
action stringrequired
Default value: db.count
The action name
collection stringrequired
The collection name
matches objectrequired
The matches criteria
Responses
- 200
Count response
- application/json
- Schema
- Example (from schema)
Schema
data object
count int32
The count value
{
"data": {
"count": 0
}
}
Loading...