-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 4.4.1
-
Component/s: None
Good day,
according to MongoDB's offical change-events documetation, there are some fields missing in the NodeJS driver interface ChangeStreamDocument.
Change stream events reference:
https://docs.mongodb.com/manual/reference/change-events/
ChangeStreamDocument reference:
As you can see, something like the key "to" which is sent by MongoDB when a collection is renamed, is not present in the interface of the driver. As you can see at the following link, it is only present for "rename" events, and should therefore be typed like ns just as optional. (to?: { … })
https://docs.mongodb.com/manual/reference/change-events/#rename-event
Additionally clusterTime, txnNumber and lsid also do not have any types.
Thank you for your time and I hope this gets fixed with the next patch/release.