python - Pymongo query issue -


i have query works in mongo client doesn't return when using pymongo.

i have tried:

posts = collection.find({"species": argv[0]}), "evidence" : {"$in":["[true,true,true,null]","[true,null,true,null]"]}}) 

and

 posts = collection.find({"species": argv[0]}), "evidence" : {"$in":   [["true","true","true","null"],["true","null","true","null"]]}}) 

i have narrowed problem $in statement looking different arrays, because if run works:

 posts = collection.find({"species": argv[0]})}) 

looks you've mixed parenthesis , braces:

posts = collection.find({"species": argv[0],                           "evidence" : {"$in": [["true","true","true","null"]                                                         ["true","null","true","null"]]}}) 

Comments

Popular posts from this blog

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -