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

Aggregation with Mongoose plugin? #62

Open
off94 opened this issue Oct 30, 2019 · 2 comments
Open

Aggregation with Mongoose plugin? #62

off94 opened this issue Oct 30, 2019 · 2 comments

Comments

@off94
Copy link

off94 commented Oct 30, 2019

I'm using this library with its plugin for pagination with Mongoose and it works well with normal queries. Now I want to paginate aggregation queries, but the plugin always makes paginate() to call find() instead of aggregate(). Do you have some info on how to proceed to use aggregate()?

If I change the fn const in mongoose.plugin.js to return aggregate() instead of find(), all goes well, the problem is that in deployment the original library will be downloaded and the workaround won't be there.

@sangdth
Copy link

sangdth commented Jan 1, 2020

I'm looking for this.

@tamis-laan
Copy link

Also looking for this, I want to do geoNear queries. Anyone found some way of dealing with this? Or do you need a seperate search engine like elastic search for this?

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