{'arr': [['Bob', true], ['Alice', true], ['Mike', false]]}
I want to remove the item containing 'Bob', after operation the
document will become {'arr': [['Alice', true], ['Mike', false]]} .
How can I do this?
Or I should choose another scheme?
--
Code is poetry.
Could you give me the exact command I should use?
On Thu, Oct 13, 2011 at 10:47 PM, Karl Seguin <karls...@gmail.com> wrote:
> Use $pull:
> http://www.mongodb.org/display/DOCS/Updating#Updating-%24pull
>
> --
> You received this message because you are subscribed to the Google Groups
> "mongodb-user" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/mongodb-user/-/pAEypHYVje0J.
> To post to this group, send email to mongod...@googlegroups.com.
> To unsubscribe from this group, send email to
> mongodb-user...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/mongodb-user?hl=en.
>
--
Code is poetry.