Closed twiddler closed 3 years ago
https://docs.meteor.com/api/collections.html#modifiers reads
Literal document modifiers are not currently supported by validated updates.
but does not go into details what those "validated updates" are. But maybe that is the issue here? I have autopublish and insecure packages still enabled.
Closing as it is duplicate of #368
I am using simpl-schema and attachSchema() with uniforms. The following code
leads to
while
works fine. I might be mistaken, but from https://docs.mongodb.com/manual/reference/method/db.collection.update/#replace-a-document-entirely I expected the first snippet to work. Maybe I am missing something, I am just getting started with Meteor and all these packages.