v0.25.0 #1034
doug-martin
started this conversation in
Releases
v0.25.0
#1034
Replies: 1 comment
-
Super nice thanks !! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Aggregate Queries Return Arrays
In versions prior to
v0.25.0
aggregate queries returned a single response with just the aggregated values. Inv0.25.0
we have introduced a newgroupBy
option that requires aggregates to return arrays.When using aggregates without the groupBy the response will always contain a single record with your aggregated
values. If you specify a
groupBy
you will get a response with a distinct group and the corresponding aggregatedvalues.
Given the following query
Old
The old response would look like
New
The new response will look like
New Aggregate GroupBy
The new response format really shines when using the
groupBy
queryGiven the following aggregate grouping on
completed
You'll get the following response with record for each distinct group
Beta Was this translation helpful? Give feedback.
All reactions