I have a document in MongoDB as follows:
{"ONE": {"TWO": {"THREE":"5"}}}
I want to request mongoDb using the Pymongo findAPI , but it does not work:
for value in dbaccess.find({"ONE":{"TWO":{"THREE":{"$gt":"0"}}}}):
print value
Nothing is printed with the above code.
source
share