- Docs
- API reference
- Endpoints and schemas
- GraphQL
- Selection
AggregateResult
Fields of AggregateResult and how to reach it.
Selection. This type is a selection. An intent returns it, and you choose which of its fields come back.
The schema carries no description for this type.
Where it appears
Section titled “Where it appears”No connection leads here from a primary entity.
aggregatereturns it.
Math fields
Section titled “Math fields”Every record of this type answers count, countDistinct, has, sum, min, max, avg, collect, minDateTime, maxDateTime. Each takes field and an optional conditions. See Selection.
Example
Section titled “Example”query { aggregate(searchInput: { entityType: OPERATING_LOCATION conditions: { filter: { EQ: ["addresses.state", "TX"] } } }) { count(field: "operatingLocation") }}Response, as returned:
{ "data": { "aggregate": { "count": 2674906 } }}