Skip to content

Commit 366afd6

Browse files
Make nsType optional in ChangeStreamDocument (#1759)
1 parent 449d039 commit 366afd6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

source/change-streams/change-streams.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ class ChangeStreamDocument {
128128
*
129129
* @since 8.1.0
130130
*/
131-
nsType: "collection" | "timeseries" | "view" | null;
131+
nsType: Optional<"collection" | "timeseries" | "view">;
132132

133133
/**
134134
* Only present for ops of type 'rename'.
@@ -1016,6 +1016,8 @@ There should be no backwards compatibility concerns.
10161016

10171017
## Changelog
10181018

1019+
- 2025-02-24: Make `nsType` `Optional` to match other optional fields in the change stream spec.
1020+
10191021
- 2025-01-29: Add `nsType` to `ChangeStreamDocument`.
10201022

10211023
- 2024-02-09: Migrated from reStructuredText to Markdown.

0 commit comments

Comments
 (0)