Skip to content

Commit 6bb705e

Browse files
committed
DOCSP-29035: remove deprecated accessors BW (#661)
(cherry picked from commit ba22885)
1 parent 2e9dd68 commit 6bb705e

File tree

2 files changed

+5
-16
lines changed

2 files changed

+5
-16
lines changed

source/code-snippets/usage-examples/bulkWrite.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { MongoClient } from "mongodb";
1+
const { MongoClient } = require("mongodb");
22

33
// Replace the uri string with your MongoDB deployment's connection string.
44
const uri = "<connection string uri>";

source/usage-examples/bulkWrite.txt

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -87,25 +87,14 @@ When you run the preceding example, you should see the following output:
8787
:copyable: false
8888

8989
BulkWriteResult {
90-
result: {
91-
ok: 1,
92-
writeErrors: [],
93-
writeConcernErrors: [],
94-
insertedIds: [ [Object], [Object] ],
95-
nInserted: 2,
96-
nUpserted: 0,
97-
nMatched: 1,
98-
nModified: 1,
99-
nRemoved: 0,
100-
upserted: [],
101-
lastOp: { ts: [Timestamp], t: 17 }
102-
},
10390
insertedCount: 2,
10491
matchedCount: 1,
10592
modifiedCount: 1,
10693
deletedCount: 0,
10794
upsertedCount: 0,
10895
upsertedIds: {},
109-
insertedIds: { '0': 5ec4..., '1': 5ec4... },
110-
n: 2
96+
insertedIds: {
97+
'0': new ObjectId("..."),
98+
'1': new ObjectId("...")
99+
}
111100
}

0 commit comments

Comments
 (0)