this is my mongodb object
{
"_id" : ObjectId("4faaba123412d654fe83hg876"),
"user_id" : 123456,
"posters" : [ 123456,1111,456789,3333]
}
i want to add an item to posters array , or remove one how could i do it ?
its nested updating.
i saw some question around stackoverflow , but i didnt found any answer how to remove object from the array , lets say 3333 there .
so the result will be :
{
"_id" : ObjectId("4faaba123412d654fe83hg876"),
"user_id" : 123456,
"posters" : [ 123456,1111,456789]
}