Menu
Aggregate over a collection
Aggregate over a collection
POST
/v1/aggregate/{collection}Use it in a workflow
- Add a step and choose the Weaviate connector.
- Pick the Aggregate over a collection action (under aggregate).
- Fill in the fields below, then reference the result from later steps as
{{aggregateOverACollection.response.data}}.
Request
Path parameters
Request body
Enter the body as JSON in the step's Body field.
{
"groupBy": "string",
"returnMetrics": [
"string"
],
"where": {
"operands": [
{}
],
"operator": "GreaterThanEqual",
"path": [
"inCity",
"city",
"name"
],
"valueInt": 2000,
"valueNumber": 3.14,
"valueBoolean": false,
"valueString": "my search term",
"valueText": "my search term",
"valueDate": "TODO",
"valueIntArray": "[100, 200]",
"valueNumberArray": [
3.14
],
"valueBooleanArray": [
true,
false
]
},
"limit": 0,
"tenant": "string",
"over": {},
"objectLimit": 0
}
Response
Returns 200 with a any. Read it in later steps with {{aggregateOverACollection.response.data.<field>}}.
Need more? See the Weaviate guide for connection setup and behaviour shared by every action.
Was this page helpful?