I am new to HotChocolate and I am seriously try to add aggregates like sum, average, count and etc. to my graphql backend. So, the frontend could query the aggregations without doing additional efforts on backend. something like hasura queries:
query {
article_aggregate {
aggregate {
count
sum {
rating
}
avg {
rating
}
max {
rating
}
}
nodes {
id
title
rating
}
}
}
Can anyone help me?
Thank you!