Tryng to reference the rating component of the imdb object but getting an error

Hi @Ramone_Granston,
Try to change it to:

db.movies.find({"imdb.rating": {$gte: 7}}, {"imdb.rating": 1, _id: 1})

Goodluck,
Rafael,

1 Like

Thank you…it did work, i didn’t try that because I was able to access other fields without the quotation marks. Guess I should just ensure it has it going forward

yeah, you need the quotation mark because of the dot (.)

1 Like

oh ok understood, thanks again

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.