Meteor-Community-Packages / meteor-simple-schema

Meteor integration package for simpl-schema
https://github.com/Meteor-Community-Packages/meteor-simple-schema
MIT License
919 stars 161 forks source link

Removing old field from old users? Ignore schema when using $unset ? #728

Closed hems closed 6 years ago

hems commented 6 years ago

Hello i'm performing some migrations on the database and i need to remove an old field from old users but when calling Meteor.users.update it says i can't $unset my field because it's not on the schema.

Is there a way of $unset a field while ignoring validation?

hems commented 6 years ago

I just found the answer: https://github.com/aldeed/meteor-collection2#inserting-or-updating-without-validating