According to the lecture and Atlas Sandbox set up in the Chapter 2 M001 course, the student is led to believe that the “key”: “value” is always enclosed in “”.
In my playing with the queries, I have found that if your field is a string, then yes, you need the " " after the colon. (ex. “state” : “NY”). However, if your field is a number or integer, the " " isn’t correct. These values need to be queried without the " ". (Ex. “year” : 1989). This is not really gone over in the lessons and in future versions, it would be nice to add a section on syntax differences according to the datatype being queried.
The reason I bring this up is that in later courses, it is also not identified that " " is not needed for the integer values.
If I am wrong, then please explain why when I am doing the practice sessions on chapter 2 IDE, I cannot get a return value in the query string using
<deleted, reason: potential answer>
When I enter this it returns no documents. But when I enter
<deleted, reason: potential answer> I get a printout of documents?