Chapter 1: Lab2 : "rated"

Hi. When I look at a collection from db.movies, I do not see a field/document for “rated.” There is “rating” for both imdb and tomatoes.viewer. For the lab homework, are we supposed to rename one of these to “rated”?

Hi
look more carefully, not all buit many documents have a ‘rated’ field at the top level.
You can find them with a query:
db.movies.find({‘rated’: {$exists: ‘true’}})

1 Like