From 829e748e1f17b335836641dd794e4437033d59f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20van=20Mil?= Date: Fri, 28 Jan 2022 00:18:44 +0100 Subject: [PATCH] fix(NODE-3621): fixed the documentKey property on ChangeStreamDocument type --- src/change_stream.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/change_stream.ts b/src/change_stream.ts index 443b663d7a1..ee56af2bd9a 100644 --- a/src/change_stream.ts +++ b/src/change_stream.ts @@ -144,7 +144,7 @@ export interface ChangeStreamDocument { * 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; + documentKey?: { _id: InferIdType }; /** * Only present for ops of type ‘update’.