We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8be5914 commit 1bf7f53Copy full SHA for 1bf7f53
tests/MongoDB.Driver.Examples/TransactionExamplesForDocs/WithTransactionExample1.cs
@@ -44,7 +44,7 @@ public void Example1()
44
// string uri = "mongodb://mongos0.example.com:27017,mongos1.example.com:27017/";
45
var client = new MongoClient(connectionString);
46
47
- // Prereq: Create collections. CRUD operations in transactions must be on existing collections.
+ // Prereq: Create collections.
48
var database1 = client.GetDatabase("mydb1");
49
var collection1 = database1.GetCollection<BsonDocument>("foo").WithWriteConcern(WriteConcern.WMajority);
50
collection1.InsertOne(new BsonDocument("abc", 0));
0 commit comments