Support for groupBy and time series aggregations in GraphQL Data APIs
When querying datasets with the GraphQL Data APIs, you can now bucket time series data by common grains (day, week, etc) and aggregate data within time buckets. You can also groupBy other dimensions to segment the data. Check out our docs for more info!
query {
purchasesQuery(
filter: {
item_type: {
in: ["pants", "skirts", "shorts"]
}
payment_status: {
eq: "successful"
}
}
groupBy: [purchase_timeDay,item_type]
) {
purchase_amountSum
purchase_timeDay
item_type
}
}