aggregate
Aggregate over a collection
Aggregates over the objects of a collection. Phase 1 supports counts: the number of matching objects, either in total (flat count response) or per group of a groupBy property (groups response). A where filter limits the objects that are aggregated; an empty body returns the collection's total object count.
post/aggregate/{collection}
Request
- Base URL: https://localhost:8080/v1
- URL: https://localhost:8080/v1/aggregate/{collection}
- Auth: one of:
- none
- OAuth 2 (implicit, authorization URL http://to-be-configured-in-the-application-config)
Path parameters
collectionstring required
The name (or alias) of the collection to aggregate over. A lowercase first letter is normalized to the canonical uppercase form.
Request body
Example request
{
"where": {
"operator": "GreaterThanEqual",
"path": [
"inCity",
"city",
"name"
],
"valueInt": 2000,
"valueNumber": 3.14,
"valueString": "my search term",
"valueText": "my search term",
"valueDate": "TODO",
"valueNumberArray": [
3.14
],
"valueBooleanArray": [
true,
false
],
"valueStringArray": [
"my search term"
],
"valueTextArray": [
"my search term"
]
}
}Response
Aggregation performed successfully.
Changes
No recorded changes to this operation across all 1 revision of this API.