Details
-
Task
-
Resolution: Fixed
-
Major - P3
-
None
-
None
-
None
-
Fully Compatible
-
Server Serverless 2021-12-27, Server Serverless 2022-01-10, Server Serverless 2022-01-24
-
150
Description
Support requesting acknowledgement that a write operation has propagated to a specified number of tagged nodes, without requiring users to define a custom write concern in the replica set config. Accept a write concern with the custom write concern specification embedded in the w option:
db.collection.insertOne(
|
{ id: "xyz", status: "A" },
|
{ writeConcern: { w: { "dc_va": 2, "dc_ca": 1 } } }
|
)
|