Wrong Typescript type for documentKey in ChangeStreamDocument

XMLWordPrintableJSON

    • 1
    • None
    • Not Needed
    • None
    • None
    • None
    • None
    • None
    • None

      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
            Reporter:
            Robert Fox
            None
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: