How to select a single field for all documents in a MongoDB collection?
In my MongoDB, I have a student collection with 10 records having fields name and roll. One record of this collection is: { “_id” : ObjectId(“53d9feff55d6b4dd1171dd9e”), “name” : “Swati”, “roll” : “80”, } I want to retrieve the field roll only for all 10 records in the collection as we would do in traditional database … Read more