Answers for "mongodb replace item in array"

1

mongodb replace item in array

db.movies.updateMany(
    { "languages": "French" }, 
    { "$set": { "languages.$": "Francais" } }
)
Posted by: Guest on October-16-2020

Browse Popular Code Answers by Language