collection-name.js 222 Bytes
Meteor.methods({
  insertBoth( object ) {
    check( object, Object );

    try {
      return Documents.insert( object );
    } catch ( exception ) {
      throw new Meteor.Error( '500', `${ exception }` );
    }
  }
});