pymongo "Projection" to exclude all fields and only get selected fields?
pymongo "Projection" to exclude all fields and only get selected fields? Question: Using mongodb projection we can define which filed to include and which one to exclude. like this : data = db.Users.find_one({‘username’: user },{"_id":0,"password":0,"email":1}) This Query will exclude the _id and password fields and only include email , But is there a way to …