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't skip autovalues on client #358

Closed macsj200 closed 7 years ago

macsj200 commented 7 years ago

According to the docs, you can't skip generating auto values on the client. Why not? Is there a workaround?

aldeed commented 7 years ago

You wouldn't want any random person to be able to circumvent your auto values. The workaround would be to use a server method and call it from the client.