Open manasag opened 10 months ago
Could you maybe consider removing the aggregate field so that:
query {
articles_aggregate {
aggregate {
count
sum {
rating
}
avg {
rating
}
max {
rating
}
}
}
}
Becomes:
query {
articles_aggregate {
count
sum {
rating
}
avg {
rating
}
max {
rating
}
}
}
@daniel-chambers can you share the RFC here.
@noverby I think the current milestone do not intend to tackle what you have asked. However this is something for note for us in future, and possibly as an aliasing feature (so that you can shape the graphql schema in a custom manner)
Aggregations and GroupBy support in GraphQL Schema.
Here is the RFC for the technical design that can be reviewed.
(Internal link: https://hasurahq.atlassian.net/browse/V3ENGINE-158)