I have following string command
query = "{},{'_id': False}"
Now I want to run above command in following code
client = MongoClient('mongodb://'+host+':'+port+'/')
db_col = database.split(',')
database, collection = db_col[0].strip(), db_col[1].strip()
collection = client[database][collection]
collection = collection.find(query).limit(10)
Is there any solution for that