You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 8, 2018. It is now read-only.
Because Minimongoid's update method only takes a set of attributes and then calls save, the only way to achieve $addToSet is to copy the set, add to the copy, and then add the copy to the attributes.
Minimongoid methods would ideally allow for the same arguments that are allowed by Meteor.
Meteor's collection.update allows a modifier argument (http://docs.meteor.com/#update)
This allows us to use MongoDB features like $addToSet (http://docs.mongodb.org/manual/reference/operator/addToSet/#op._S_addToSet)
Because Minimongoid's update method only takes a set of attributes and then calls save, the only way to achieve $addToSet is to copy the set, add to the copy, and then add the copy to the attributes.
Minimongoid methods would ideally allow for the same arguments that are allowed by Meteor.