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

Aggregations #73

Open
targos opened this issue Jun 22, 2021 · 2 comments
Open

Aggregations #73

targos opened this issue Jun 22, 2021 · 2 comments

Comments

@targos
Copy link
Member

targos commented Jun 22, 2021

No description provided.

@riveraser
Copy link

Please, any feedback about aggregations? I did a full model.query({...}) and it works! Bu I did not find mode.aggregation({}) ... thanks for your work

@targos
Copy link
Member Author

targos commented Sep 9, 2021

Hello, nothing yet directly from the Model, but you can already do aggregations using the Collection object:

const collection = await Model.getCollection();
collection.aggregate(...)

https://mongodb.github.io/node-mongodb-native/4.1/classes/Collection.html#aggregate

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

2 participants