Blame view

both/methods/remove/collection.js 190 Bytes
0ccda7775   Ryan Glover   add support for E...
1
2
3
4
5
6
7
8
9
10
11
  Meteor.methods({
    removeMethod( argument ) {
      check( argument, String );
  
      try {
        Collection.remove( argument );
      } catch( exception ) {
        return exception;
      }
    }
  });