You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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?
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.
The text was updated successfully, but these errors were encountered: