My collection structure is:
col1 = {'class':'12', 'roll':[1, 2, 3, 4]}
Now I want to update
the collection col1
to
col1 = {'class':'12', 'roll':[1, 2, 3, 4, 5]}
I added another roll number
here. How to update this in pymongo.
My collection structure is:
col1 = {'class':'12', 'roll':[1, 2, 3, 4]}
Now I want to update
the collection col1
to
col1 = {'class':'12', 'roll':[1, 2, 3, 4, 5]}
I added another roll number
here. How to update this in pymongo.