Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

the update operation document must contain atomic operators mongodb

db.c20160712.updateOne(
    { "Attribute" : "good" }, 
    { $set: {"Type" : "DVD", "Title" : "Matrix, The", "Released" : 1999, "Genre" : "Action" } },
    { upsert: true }
);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #update #operation #document #atomic #operators #mongodb
ADD COMMENT
Topic
Name
2+3 =