Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 764 Bytes

README.md

File metadata and controls

25 lines (16 loc) · 764 Bytes

teamgrid:limit-update-operators Build Status

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']
  });