A Meteor package that extends Mongo.Collection to provide support for specifying a schema and then validating against that schema when inserting and updating.
If I run this, Collection2 complains that Checkins is required. Yet, if I add { validate: false }, everything works as expected. MongoDB creates the document and pushes the user / timestamp combination to the array.
I have the following schema:
and the following upsert code:
If I run this, Collection2 complains that Checkins is required. Yet, if I add { validate: false }, everything works as expected. MongoDB creates the document and pushes the user / timestamp combination to the array.
Why doesn't Collection2 accept this?