Projection on Compass

Hİ,
Why the projection on compass filter does not work?
{“genres.1”: ‘Western’}, {“title”: 1} or {“genres.1”: ‘Western’}, {title: 1} both return “0” documents.
thanks

It should work
MongoDB Enterprise Cluster0-shard-0:PRIMARY> db.movieDetails.find({“genres.1”:“Western”}, {“title”:1}).count()
14

Use options–>project

Just an addition to @Ramachandra_37567’s answer

1 Like

that’s where I was making the mistake. i was adding my projections to the “filter”.