Meteor-Community-Packages / meteor-collection2

A Meteor package that extends Mongo.Collection to provide support for specifying a schema and then validating against that schema when inserting and updating.
https://packosphere.com/aldeed/collection2
MIT License
1.02k stars 108 forks source link

Except other validate field when collection insert, update.... #385

Open thearabbit opened 6 years ago

thearabbit commented 6 years ago

I would like to except other validate field

// Schema
const Schema = {
  name: String
}
Collection.attachSchema(Schema)
---
Collection.insert({
  name: 'Theara',
  createdAt: .... // Except this field to validate
})