We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent deb8544 commit c63a21bCopy full SHA for c63a21b
src/change_stream.ts
@@ -144,7 +144,7 @@ export interface ChangeStreamDocument<TSchema extends Document = Document> {
144
* this will contain all the components of the shard key in order,
145
* followed by the _id if the _id isn’t part of the shard key.
146
*/
147
- documentKey?: InferIdType<TSchema>;
+ documentKey?: { _id: InferIdType<TSchema> };
148
149
/**
150
* Only present for ops of type ‘update’.
0 commit comments