Skip to main content

AggregateInput

AggregateInput defines how to group results within a bucket

input AggregateInput {
name: String!
type: AggregationType
field: String
groupBy: String
first: Int
}

Fields​

AggregateInput.name ● String! non-null scalar​

Name for this aggregation

AggregateInput.type ● AggregationType enum​

Type of aggregation to perform

AggregateInput.field ● String scalar​

Field to aggregate on. Used along with type.

AggregateInput.groupBy ● String scalar​

Field to group by. Legacy behaviour, used without type.

AggregateInput.first ● Int scalar​

Maximum number of buckets to return

Member Of​

BucketInput input