python - Pymongo: Bulk update with $setOnInsert error -


I am trying to update the bulk, while at the same time maintaining the position of a particular area. In my code I am either making a document or adding 'stuff' to the list. For data in D: '' 'push': {'content': 'something'}, ' '' 'Set': '' '$ setOnInsert': {'status': 0}, '$ inc': {'seq': 1}}) bulkop.execute () < P> However, when I try this I get an error error: pymongo.errors.BulkWriteError: Batch Ops errors occurred

This works fine without $ setOnInsert: {'status' : 0} Extra, but I need to make sure the state is not updating.


Comments

Popular posts from this blog

c# - SignalR: "Protocol error: Unknown transport." when navigating to hub -

class - Kivy: how to instantiate a dynamic classes in python -

python - mayavi mapping a discrete colorbar on a surface -