bguerout/jongo

No updateMany() query

Ameya7496deshpande opened this issue · 1 comments

Trying to update multiple documents by passing/trying to pass aggregation string in .with().
The string passed is something like: "[{$set: {filed1: {$multiply: ['$filed2' : 90]}}}]"
I get error message as : "Replacements can not be multi".

If query is modified like : "{$set: {filed1: {$multiply: ['$filed2' : 90]}}}"
Getting error : com.mongodb.WriteConcernException: Write failed with error code 52 and error message 'The dollar ($) prefixed field '$multiple' in 'filed1.$multiple' is not valid for storage.'

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.