Chapter 2: Projections

I got different results from:

  1. MongoDB client
    db.movies.find({genre: "Action, Adventure}, {title: 1})
  2. MongoDB Compass
    ({genre: "Action, Adventure}, {title: 1})

Compass shows those records with “title” = 1???

Thanks.

Hi,
There are few typos in the code:

db.movies.find({genre: "Action, Adventure}, {title: 1})

 db.movieDetails.find({"genres": ["Action", "Adventure"]}, {"title":1})

You can have a look on this screenshot for the compass