Dear Team,
We have one of our Application running on MongoDB 3.2 community version.
We have one requirement to update documents where we have to search documents where response is one document and it has RESOLUTION element with some value, to create a another document in same main document having resolution.paramters.RESOLUTION structure. With below query I am getting error. Please help.
orderhub:SECONDARY> db.tasks.updateOne( { $and: [{“response.RESOLUTION”: {$exists: true}} , {“response.RESOLUTION”:“RESUBMIT”}]}, {$set: {“resolution” : {“parameters” : {“RESOLUTION” : “RESUBMIT”}}}})
2022-03-01T16:52:06.510+0530 E QUERY [thread1] TypeError: err.hasWriteErrors is not a function :
DBCollection.prototype.updateOne@src/mongo/shell/crud_api.js:519:13