A Meteor package that extends Mongo.Collection to provide support for specifying a schema and then validating against that schema when inserting and updating.
Allow mutually exclusive pick/omit options for insert and update operations. This provides simple inline syntax and avoids needing to create a whole named context or separate schema just to limit the fields allowed in a given operation. Similarly to the 'keys' option, the value would be an array of field names that will be spread into the pick or omit function call when it is run. An error is thrown if both pick and omit are provided because there is no good way to determine which should go first.
Allow mutually exclusive pick/omit options for insert and update operations. This provides simple inline syntax and avoids needing to create a whole named context or separate schema just to limit the fields allowed in a given operation. Similarly to the 'keys' option, the value would be an array of field names that will be spread into the pick or omit function call when it is run. An error is thrown if both pick and omit are provided because there is no good way to determine which should go first.