sift.js icon indicating copy to clipboard operation
sift.js copied to clipboard

Feature Request: Aggregation

Open threshold862543 opened this issue 2 years ago • 4 comments

This is a really nice and convenient library. It would be great if aggregation was also implemented.

threshold862543 avatar Oct 06 '22 01:10 threshold862543

Glad you like it! Do you have an example how you'd like to see this implemented in Sift?

crcn avatar Oct 30 '22 00:10 crcn

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 } } }
] );

threshold862543 avatar Nov 02 '22 11:11 threshold862543

https://github.com/kethan/uqry

Try this under 1kb with aggregation

kethan avatar Jul 27 '24 11:07 kethan

@kethan wow nice, thanks!

threshold862543 avatar Jul 30 '24 09:07 threshold862543