Blame view

both/methods/remove/collection-name.js 228 Bytes
c39994410   Ryan Glover   wip converting to...
1
2
3
4
5
6
7
8
9
10
11
  Meteor.methods({
    remove( argument ) {
      check( documentId, String );
  
      try {
        return Documents.remove( documentId );
      } catch ( exception ) {
        throw new Meteor.Error( '500', `${ exception }` );
      }
    }
  });