Find not working in mongo shell but working in atlas UI

Find command not showing anything in mongo shell but with same find arguments in atlas UI showing 3 documents in atlas Ui.

Could be typo
insepections vs inspections

yes thought so but I checked thoroughly am inserting into “inspections” and finding in “inspections”…in Atlas UI too am running find in “inspections”…which means insert in mongo shell into “inspections” is working right but not find()

Why find will not work in shell?
If you use correct collection you will get the results
Your snapshot from shell has a typo
Correct it and run the query again

shit!!! yes my bad missed the typo…thanks anyways :smile:

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