RawSushi's Tech Journal
My online tech scrapbook where I keep my notes in case I need to look them up later
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment