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
The text was updated successfully, but these errors were encountered:
edneyreis
changed the title
mongoosePlugin paginate throws "collatedQuery.sort"
mongoosePlugin throws "collatedQuery.sort" in paginate method
Jan 27, 2022
Environment:
Node: v14.18.2
Npm: 6.14.15
Mongoose: 5.13.13
Mongo: 3.7.3
Mongo-cursor-pagination: 7.6.1
Steps to reproduce:
Proposed solution:
mongo-cursor-pagination/src/find.js
change
const query = collection[findMethod]({ $and: [cursorQuery, params.query] }, params.fields);
to:
const query = await collection[findMethod]({ $and: [cursorQuery, params.query] }, params.fields);
The text was updated successfully, but these errors were encountered: