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

Investigate NODE-4045 - UnorderedBulkOperation & OrderedBulkOperation missing 'length' property in Typescript definition

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • 1
    • Not Needed

      NODE-4045 Description

      What problem are you facing?

      UnorderedBulkOperation and OrderedBulkOperation are missing the length property in the Typescript definitions. The property exists in Javascript (see here: https://github.com/mongodb/node-mongodb-native/blob/main/src/bulk/common.ts#L1302-L1307) but Typescript is unaware of it due to using `Object.defineProperty`.

       

      I use this property to determine if a bulk operation has operations. If it doesn't, I skip executing it.

            Assignee:
            bailey.pearson@mongodb.com Bailey Pearson
            Reporter:
            dbeng-pm-bot PM Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: