In my MongoDB, I have a student collection with 10 records having fields name and roll. One record of this collection is:
name
roll
{ \"
This works for me,
db.student.find({},{"roll":1})
no condition in where clause i.e., inside first curly braces. inside next curly braces: list of projection field names to be needed in the result and 1 indicates particular field is the part of the query result