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