Tuesday, August 19, 2014

MongoDB Delete Items from Array

It is possible to delete items from array based on very specific criteria using $pull.

Works for both primitives in an array or complex objects in the array.

Reference: http://docs.mongodb.org/manual/reference/operator/update/pull/

No comments:

Post a Comment