Get OperationFailure error with PyMongo 2.7.1 -
i run operationfailure error pymongo 2.7.1 following code:
db.business.update( {'_id': objectid(business_id)}, { '$set': {'photos.primary': photo_url}, '$push': {'photos.secondary': old_primary_url} } )
i following error, when primary member has value
<class 'pymongo.errors.operationfailure'>: '$set' empty
has idea tackle this?
best
Comments
Post a Comment