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

can not disable trim #350

Closed elisei-timofte closed 7 years ago

elisei-timofte commented 8 years ago

I need to save spaces in the DB but the trim: false option does not work.

elisei-timofte commented 8 years ago

Any updates on this issue?. Right now I had to remove the whole schema from that collection so I can make it run. It would be nice if we can fix this. Thanks!

elisei-timofte commented 7 years ago

I've found an workaround: YourCollection.insert data, {trimStrings: false}