Blame view

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