pymongo - Project the elements of an inner dictionary on the root level in MongoDB -


i have mongo structure this:

'hash'  : 10111 'offer' : {         'valid' : true,         'title' : bogo         'domain': amazon.com        } 

and want result of mongo query like:

'valid' : true, 'title' : bogo 'domain': amazon.com 

not nested inside offer field.

'offer' : {         'valid' : true,         'title' : bogo         'domain': amazon.com        } 

can done?


Comments

Popular posts from this blog

android - Pass an Serializable object in AIDL -

How to provide Authorization & Authentication using Asp.net, C#? -

How to use Authorization & Authentication in Asp.net, C#? -