Blame view

both/methods/update/collection.js 284 Bytes
0ccda7775   Ryan Glover   add support for E...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
  Meteor.methods({
    updateMethod( argument ) {
      check( argument, Object );
  
      try {
        var documentId = Collection.update( argument._id, {
          $set: { 'key': argument.key }
        });
        return documentId;
      } catch( exception ) {
        return exception;
      }
    }
  });