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

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -