Skip to content

DOCSP-29035: remove deprecated accessors bulkWrite #661

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion source/code-snippets/usage-examples/bulkWrite.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { MongoClient } from "mongodb";
const { MongoClient } = require("mongodb");

// Replace the uri string with your MongoDB deployment's connection string.
const uri = "<connection string uri>";
Expand Down
19 changes: 4 additions & 15 deletions source/usage-examples/bulkWrite.txt
Original file line number Diff line number Diff line change
Expand Up @@ -87,25 +87,14 @@ When you run the preceding example, you should see the following output:
:copyable: false

BulkWriteResult {
result: {
ok: 1,
writeErrors: [],
writeConcernErrors: [],
insertedIds: [ [Object], [Object] ],
nInserted: 2,
nUpserted: 0,
nMatched: 1,
nModified: 1,
nRemoved: 0,
upserted: [],
lastOp: { ts: [Timestamp], t: 17 }
},
insertedCount: 2,
matchedCount: 1,
modifiedCount: 1,
deletedCount: 0,
upsertedCount: 0,
upsertedIds: {},
insertedIds: { '0': 5ec4..., '1': 5ec4... },
n: 2
insertedIds: {
'0': new ObjectId("..."),
'1': new ObjectId("...")
}
}