sift.js
sift.js copied to clipboard
Feature Request: Aggregation
This is a really nice and convenient library. It would be great if aggregation was also implemented.
Glad you like it! Do you have an example how you'd like to see this implemented in Sift?
For example the Perform a Count example on this page.
db.articles.aggregate( [
{ $match: { $or: [ { score: { $gt: 70, $lt: 90 } }, { views: { $gte: 1000 } } ] } },
{ $group: { _id: null, count: { $sum: 1 } } }
] );
https://github.com/kethan/uqry
Try this under 1kb with aggregation
@kethan wow nice, thanks!