-
Type: Bug
-
Resolution: Fixed
-
Priority: Trivial - P5
-
Affects Version/s: None
-
Component/s: TypeScript
In the "ChangeStreamDocument" type for the nodejs driver, the reported type of
documentKey?: InferIdType<TSchema>;
Does not reflect the shape of the value (at least not on a delete event).
The return value should probably be:
documentKey?: { _id: InferIdType<TSchema> };
- is duplicated by
-
NODE-3626 Stream changeEvent reporting wrong data type for documentKey
- Closed