Skip to content
Jiri Spac edited this page Jul 30, 2015 · 1 revision

While update works great when you want to assign some value or merge a newly updated object tree with older one, it doesn't work that great for adding/removing items from an array. So for adding one item into and array, use addToSet method, for removing, use removeFromSet method. Typical use case is if you have tags on your documents.

Clone this wiki locally