How to insert nested documents in to mongodb using python (pymongo)

Published: 25/09/2018
How to insert nested documents in to mongodb using python (pymongo)
Source: STACKOVERFLOW.COM

I want to insert nested lists/documents in to mongodb using python/pymongo. I want to insert the following in to mongodb using python. can somebody help? customer = { 'first_name' : 'Arnold', 'last_name' : 'Pettibone', 'addresses': [ 'home' : { 'street' : '1234 fake street', 'city' : 'Anytown', 'state' : 'OH', 'zip' : '12345' }, 'work' : { 'street' : '742 Evergreen

Read more
Related news
Comment
FACEBOOK