Chapter 2: The MongoDB Query Language + Atlas :: Projections


Any one knows how to use projections in Compass?
I see ouput’s are different in mongo shell for below query:
use video
db.movies.find({genre: “Action, Adventure”}, {title: 1})

and same above query returns different output in compass:
({genre: “Action, Adventure”}, {title: 1})

That is odd, because the results should be the same.

In Compass, the projections can be added by clicking the “Options” button.


Thanks a lot!!
it works…

1 Like