I have a partner collection and I am using pymongo to retrieve the data
When I query the collection with MongoDB, I see the following result
db.partner.find({'unique_key': 'c89dbe313932008febde61cdd2a071a1d'},{})
{ "_id" : ObjectId("4eb463cb158acb554e8c9c11"), "unique_key" : "c89dbe313932008febde61cdd2a071a1d", "name" : "ABC", "primary_key" : 12 }
But when I query via pymongo, here is what I do
for document in collection.find(find, criteria):
print document
where find = {'unique_key': 'c89dbe313932008febde61cdd2a071a1d'} and
criteria = {}
Here is what I see in result:
{u'_id': ObjectId('4eb463cb158acb554e8c9c11')}
and I don't get name and primary_key in result, am I missing something?
Thank you