MONGO D B LINK PACKAGE SYMBOL
UpdateDocument
updates (or upserts) a document (list of rules) in a collection.
DetailsDetails
- UpdateDocument returns the number of documents that were modified. If no documents match the query, it will return 0.
- The following options can be given:
-
"WriteConcern" "Acknowledged" Write concern to use. "Upsert" False Insert new documents if no existing documents match the query. "Multi" False Allow more than one document to be updated in a single operation. - Valid options for WriteConcern are "Acknowledged", "FSynced", "Journaled", "Majority", "Unacknowledged" and "ReplicaAcknowledged". For a description of these options, see the MongoDB documentation.