Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

mongodb replace item in array

db.movies.updateMany(
    { "languages": "French" }, 
    { "$set": { "languages.$": "Francais" } }
)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #mongodb #replace #item #array
ADD COMMENT
Topic
Name
7+4 =