Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Aggregation #248

Open
threshold862543 opened this issue Oct 6, 2022 · 4 comments
Open

Feature Request: Aggregation #248

threshold862543 opened this issue Oct 6, 2022 · 4 comments

Comments

@threshold862543
Copy link

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

@crcn
Copy link
Owner

crcn commented Oct 30, 2022

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

@threshold862543
Copy link
Author

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

@kethan
Copy link

kethan commented Jul 27, 2024

https://github.com/kethan/uqry

Try this under 1kb with aggregation

@threshold862543
Copy link
Author

@kethan wow nice, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants