The problem is :
doc1:{
_id:1,
array:['a','b','c']
},
doc2:{
_id:2,
array:['a','f','c']
}
I'm trying to remove ['a','b']
from the array
field, using :
.update({_id:1},{$pull:{array:['a','b']}})
but it doesn't seem to change anything, is there a different function I should use?