Open
Description
For example, using the code below doesn't work
MongoPaging.find(this.collection, { query, next, limit, paginatedField, fields: { _id: 1, userName: 1, avatar: 1, cover: 1, biography: 1, role: 1, likesCount: 1 }, })
I was able to workaround this issue by adding:
MongoPaging.find(this.collection, { query, next, limit, paginatedField, fields: { projection: { _id: 1, userName: 1, avatar: 1, cover: 1, biography: 1, role: 1, likesCount: 1 } }, })
This should be fixed by changing on line 43 of the find.js to:
const query = collection[findMethod]({ $and: [cursorQuery, params.query] }, { projection: params.fields });
Metadata
Metadata
Assignees
Labels
No labels