Blame view
both/methods/insert/collection-name.js
218 Bytes
c39994410
|
1 2 3 4 5 6 7 8 9 10 11 |
Meteor.methods({ insert( object ) { check( object, Object ); try { return Documents.insert( object ); } catch ( exception ) { throw new Meteor.Error( '500', `${ exception }` ); } } }); |