Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

mongodb replace document

db.collection.replaceOne(
   <filter>,
   <replacement>,
   {
     upsert: <boolean>,
     writeConcern: <document>,
     collation: <document>,
     hint: <document|string>                   // Available starting in 4.2.1
   }
)
Source by docs.mongodb.com #
 
PREVIOUS NEXT
Tagged: #mongodb #replace #document
ADD COMMENT
Topic
Name
5+2 =