Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { Meteor } from 'meteor/meteor';
- import { Mongo } from 'meteor/mongo';
- import SimpleSchema from 'simpl-schema';
- const TestColl = new Mongo.Collection(null);
- TestColl.schema = new SimpleSchema({
- owner: {
- type: String,
- },
- });
- TestColl.attachSchema(TestColl.schema);
- Meteor.startup(function() {
- TestColl.insert({ testField: 2 }, { validate: false, filter: false });
- });
Advertisement
Add Comment
Please, Sign In to add comment