Here i want to write the update query like inside tags array suppose value is good i want to change very-good.i had written but is not working properly,suppose insdie tags two value is there means , two values itself getting updated
my documents
/* 1 createdAt:12/18/2018, 5:59:33 PM*/
{
"_id" : ObjectId("5c18e82da073cdc5c70072dc"),
"roleID" : "3",
"tags" : [
"good"
]
},
/* 2 createdAt:12/18/2018, 5:59:33 PM*/
{
"_id" : ObjectId("5c18e82da073cdc5c70072db"),
"roleID" : "2",
"tags" : [
"very-good",
"good"
]
},

options-shortalways in the first position?updateManyinstead ofupdatewith{"multi": true}