Skip to content

Commit

Permalink
fix(NODE-3621): fixed type of documentKey property on ChangeStreamDoc…
Browse files Browse the repository at this point in the history
…ument (#3118)
  • Loading branch information
rvanmil committed Feb 1, 2022
1 parent deb8544 commit c63a21b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/change_stream.ts
Expand Up @@ -144,7 +144,7 @@ export interface ChangeStreamDocument<TSchema extends Document = Document> {
* this will contain all the components of the shard key in order,
* followed by the _id if the _id isn’t part of the shard key.
*/
documentKey?: InferIdType<TSchema>;
documentKey?: { _id: InferIdType<TSchema> };

/**
* Only present for ops of type ‘update’.
Expand Down

0 comments on commit c63a21b

Please sign in to comment.