I haven’t tested, but according to the docs, it should be something like this. It is a SimpleSchema issue by the way, unrelated to ValidatedMethod itself.
This is because the validator function doesn’t pass the modifier flag to the real validate function.
use new Schema like this one:
new ValidatedMethod({
name: 'Posts.methods.update',
validate: new SimpleSchema({
_id: {
type: String
},
modifier: {
type: Object,
blackbox: true
}
}).validator(),
Like so the modifier is not really validated on the method call but it will be verified when performing the update thanks to the collection2 package (which I suppose you have installed).