teamgrid:limit-update-operators
Easy limiting of mongo update operators (deny rule)
What it does
If you're using allow/deny rules in your app, in the most cases you're blocking specific mongo update operators (e.g. $rename
). With this package, you can easily limit the update operators per collection
Installation
meteor add teamgrid:limit-update-operators
Usage
var Posts = new Mongo.Collection('posts');
Posts.limitUpdateOperators(['$set', '$unset']); // whitelisting
Posts.limitUpdateOperators({ // blacklisting
blacklist: ['$rename']
});