Blame view
both/methods/insert/collection.js
232 Bytes
0ccda7775
|
1 2 3 4 5 6 7 8 9 10 11 12 |
Meteor.methods({ insertMethod( argument ) { check( argument, Object ); try { var documentId = Collection.insert( argument ); return documentId; } catch( exception ) { return exception; } } }); |