-1
I have a collection 'collection', with documents of the type:
{
'autor':'Fulano',
'livros':[
{'Título':'Livro A','páginas':200},
{'Título':'Livro B','páginas':150},
{'Título':'Livro C','páginas':300},
]
}
I want to remove one of these embedded documents (for example, Book C. I’m trying to do this with the $pull command, but it always gives some error message. Somebody help me?
Put next to the question the way you are trying to remove, so it is possible to check if you are running the right command ;)
– capaci