I need to obtain all the documents in a collection that doesn't have an specific key called "_content_Type".
I was attempting to compare with null or "" but it doesn't work.
db.fs.files.find({"_contentType":""}).count()
0
I need to obtain all the documents in a collection that doesn't have an specific key called "_content_Type".
I was attempting to compare with null or "" but it doesn't work.
db.fs.files.find({"_contentType":""}).count()
0