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

ObjectId type is any instead of ObjectId: BSON missing type definitions for exports conditions

    • 2
    • 2
    • Not Needed
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      What problem are you facing?

      When i import ObjectId from "mongodb" package and use:

      const id = new ObjectId()

                ^^ of type any

      What driver and relevant dependency versions are you using?

      driver 5.0.0

      typescript 4.9.5

      Steps to reproduce?

        1. types.png
          types.png
          455 kB
        2. 截屏2023-02-02 11.19.31.png
          截屏2023-02-02 11.19.31.png
          44 kB

            Assignee:
            neal.beeken@mongodb.com Neal Beeken
            Reporter:
            andrei@globus-china.com Andrei Izotov
            Bailey Pearson
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: