Mismatch between querying on Compass and Mongo Shell

Using moviesDetails collection on personal cluster.
The db.moviesDetails.find({mpaaRating: {$exists: false}}) query in MS doesn,t return any document.
The same query in Compass return all documents in the collection

Hello ,

Due to no recrods in db so … please check attach screen shots.

i typed a wrong collection name , The rigth name is movieDetails without “s”.
This is the reason of empty result set in MS,
One question: why if i type a wrong name the MS doesn’t put any messages?
Thanks a lot

Its internal algorighem for search. if db not exist then it not return any result

1 Like