Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-3621

Wrong Typescript type for documentKey in ChangeStreamDocument

    • 1
    • Not Needed

      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> };
       
       

            Assignee:
            bailey.pearson@mongodb.com Bailey Pearson
            Reporter:
            robert@unitydynamics.com Robert Fox
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: