Skip to content

Commit

Permalink
Make nsType optional in ChangeStreamDocument (#1759)
Browse files Browse the repository at this point in the history
  • Loading branch information
baileympearson authored Feb 24, 2025
1 parent 449d039 commit 366afd6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/change-streams/change-streams.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class ChangeStreamDocument {
*
* @since 8.1.0
*/
nsType: "collection" | "timeseries" | "view" | null;
nsType: Optional<"collection" | "timeseries" | "view">;

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

## Changelog

- 2025-02-24: Make `nsType` `Optional` to match other optional fields in the change stream spec.

- 2025-01-29: Add `nsType` to `ChangeStreamDocument`.

- 2024-02-09: Migrated from reStructuredText to Markdown.
Expand Down

0 comments on commit 366afd6

Please sign in to comment.