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

How to access named pipes using JavaScript in Firefox add-on? -

multithreading - OPAL (Open Phone Abstraction Library) Transport not terminated when reattaching thread? -

node.js - req param returns an empty array -