samedi 17 octobre 2015

Store boolean value in collection if checkbox is checked - Meteor app

I have a form with checkboxes in it. The checkboxes correspond to different events that will trigger alerts (think notification settings - email me if comment/follower/mention etc)

What's the best way to store whether a checkbox has been checked or not? Do I create a new collection and assign the user ID to the information or do I just add the checkboxes to the user document?

Also how can I actually go about actually storing which checkboxes were ticked?

Appreciate the help




Aucun commentaire:

Enregistrer un commentaire