magus
01/28/2018, 6:55 PMmax
01/28/2018, 6:58 PMConnection queries also expose aggregation features via aggregate:
# Count all posts with a title containing 'GraphQL'
query {
postsConnection(where: {
title_contains: "GraphQL"
}) {
aggregate {
count
}
}
}
Note that additional aggregations will be added over time. You can find more information about that here.
max
01/28/2018, 6:58 PMmax
01/28/2018, 6:58 PMmagus
01/28/2018, 6:59 PMmagus
01/28/2018, 6:59 PMmax
01/28/2018, 7:01 PM