Btw, I get the same result when trying this with the sample todos app. In that case, the fixture data is clearly being generated (you can see it in your browser), but when attempting to find it via the Mongo shell, you get nothing.
Is there something Iâm missing here about how the Mongo shell works?
Although that does raise a separate issue: why does the Mongo shell not return any type of error when I am querying a collection that doesnât exist? (Ie ânotesâ in my case)
I think thereâs a few reasons for that, but for starters that wouldnât do you too much good in code. I always show collections if I think I should be returning something. db.Notes.exists() also works, since it will return null if it doesnât exist, or an object with the name if it does.
I am having the same issue, although using a capital gives me the same result. Nada.
It almost seems like there are two instances of the database being created. From the mongo console, I get nothing from db.Places.find(), but Places.find() in my server code returns documents.