Skip to content
Console(opens in a new tab)

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.

No connection leads here from a primary entity.

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.

query {
aggregate(searchInput: {
entityType: OPERATING_LOCATION
conditions: {
filter: { EQ: ["addresses.state", "TX"] }
}
}) {
count(field: "operatingLocation")
}
}

Response, as returned:

{
"data": {
"aggregate": {
"count": 2674906
}
}
}