$match Aggregation Lab

***deleted

Might have included partial solution.

When I search the movie within the collection i don’t have the labels rated nor Language:
db.movies.findOne()
{
“_id” : ObjectId(“573a1390f29313caabcd421c”),
“title” : “A Turn of the Century Illusionist”,
“year” : 1899,
“runtime” : 1,
“cast” : [
“Georges M�li�s”
],
“lastupdated” : “2015-08-29 00:21:21.547000000”,
“type” : “movie”,
“directors” : [
“Georges M�li�s”
],
“imdb” : {
“rating” : 6.6,
“votes” : 580,
“id” : 246
},
“countries” : [
“France”
],
“genres” : [
“Short”
],
“tomatoes” : {
“viewer” : {
“rating” : 3.8,
“numReviews” : 32
},
“lastUpdated” : ISODate(“2015-08-20T18:46:44Z”)
}
}

Did any of you have this issue?

A given field is not necessarely present in all documents.

it’s just called “rated”, it’s in the root of the document and it’s a string. If you try db.movies.find().pretty() you will see that the next few ones do have this “rated” field.