collection.js 284 Bytes edit raw blame history 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; } } });