Skip to content

Commit 05a5e69

Browse files
committed
chore: update migration guide
1 parent 51873e2 commit 05a5e69

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

etc/notes/CHANGES_5.0.0.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,3 +161,21 @@ cursor.closed // true
161161

162162
Everywhere the driver sends a `hello` command (initial handshake and monitoring), it will now pass the command value as `1` instead of the
163163
previous `true` for spec compliance.
164+
165+
### `BulkWriteResult` no longer contains a publicly enumerable `result` property.
166+
167+
To access the raw result, please use `bulkWriteResult.getRawResponse()`.
168+
169+
### `BulkWriteResult` now contains individual ressult properties.
170+
171+
These can be accessed via:
172+
173+
```ts
174+
bulkWriteResult.insertedCount;
175+
bulkWriteResult.matchedCount;
176+
bulkWriteResult.modifiedCount;
177+
bulkWriteResult.deletedCount;
178+
bulkWriteResult.upsertedCount;
179+
bulkWriteResult.upsertedIds;
180+
bulkWriteResult.insertedIds;
181+
```

0 commit comments

Comments
 (0)