modernistik / parse-stack

Parse Server Ruby Client SDK
https://www.modernistik.com/gems/parse-stack/
MIT License
61 stars 21 forks source link

Support MongoDB 3.2/3.4 Distinct and Aggregate Queries #44

Closed apersaud closed 4 years ago

apersaud commented 6 years ago

Parse-Server (2.7.0) has added support for Mongo Aggregate queries. You can group the objects and apply an accumulator operator such as $sum, $avg, $max, $min. group is similar to distinct. You can add or remove existing fields with project parameter. project is similar to keys. You can filter out objects with match parameter. match is similar to $eq.

https://docs.parseplatform.org/rest/guide/#distinct-queries

https://docs.parseplatform.org/rest/guide/#aggregate-queries

apersaud commented 6 years ago

Distinct queries have been implemented: https://github.com/modernistik/parse-stack#distinct-aggregation