Open OlivierAlbertini opened 4 years ago
I am having this issue as well. Did you ever find a solution?
I am having this issue as well. Did you ever find a solution?
Yes, this PR resolves the issue https://github.com/mixmaxhq/mongo-cursor-pagination/pull/239
don't hesitate to review the PR.
By default, queries in MongoDB return all fields in matching documents. To limit the amount of data that MongoDB sends to applications, you can include a projection document to specify or restrict fields to return.
Issue
using
params.fields
does nothing and all fields is returned in matching documents.Expected
The following test failed.
This PR seems to solve the issue : https://github.com/mixmaxhq/mongo-cursor-pagination/pull/60
Please make a review if possible