Hello,
I enter the correct json query but it returns a 0 answer. What could be wrong.
I’m not sure if i should post my query here.
Regards
Hello,
I enter the correct json query but it returns a 0 answer. What could be wrong.
I’m not sure if i should post my query here.
Regards
You may be connected to wrong DB.Does the collection you are querying exist?
You can check by
db
show collections
If collection exists it could be typo in the field/non existent field
Check again
Hi @Yusuf_Belgore and welcome to the MongoDB Community.
It’s hard to know what the issue is if you don’t post the query you’re writing. I don’t know if this is one of the graded quizzes or not, but some things to try (in addition to what Ramachandra suggested):
db.<collection_name>.find()
to see if you get any results as this will return all documents for the collection.If this is a non-graded quiz then there is no issues posting your query here. Even if it is graded, I’m sure someone else has posted their query here in the forums, so probably not that big of a deal either.