Closed kkm closed 9 years ago
Thanks for reporting this!
As far as I know, when you define allow
or deny
rules for your collection, this turns the collection into a "restricted collection".
Now if you run update(...)
without any modifiers or operators, this replaces the old document. And this is not allowed in a restricted collection.
If you want to run an update which does not replace but amend the old document, you have to wrap the updateValues
in a map with the $set
key.
Learn more here: http://docs.mongodb.org/manual/reference/operator/update/set/
Does that help?
Hi @mwaclawek Is known not finished yet?
Serverside.js
Java
LogCat:
Thanks for the answer.