Projection Ticket

Hi Everyone,

If anyone is struggling with this ticket and wondering why the same query working with Mongo Shell won’t work with NodeJS. Because projection works differently in Mongo shell and with Mongo Drivers like NodeJs.

Please use project method when working with NodeJS library.

http://mongodb.github.io/node-mongodb-native/3.2/api/AggregationCursor.html#project

Kanika

7 Likes