Details
-
New Feature
-
Resolution: Done
-
Minor - P4
-
None
-
1.3.3
-
None
-
Query
Description
Appends a string to a string field.
If the string field does not exist in the document, it just sets it.
db.collection.insert({_id: "test", message: "Mongo"}); //message is now "Mongo"
db.colection.update({_id: "test"}, {$append:
{message: "DB"}, false, false}; //message is now "MongoDB"
db.colection.update({_id: "test"}, {$append:
{anotherMessage: "NoSQL"}, false, false}; //anotherMessage is now "NoSQL"
Attachments
Issue Links
- related to
-
SERVER-829 Add $replace Modifier Operation
-
- Closed
-