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

Investigate NODE-4037 - Published types for MongoClient are incorrect

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

      NODE-4037 Description

      What problem are you facing?

      The types for MongoClient is missing at least the Topology property in the TypeScript definition file.

      What driver and relevant dependency versions are you using?

      mongodb: ^4.4.0

      Steps to reproduce?

      Install specified version:

      const connection = ...
      {{}}
      connection.topology.isConnected()
       
      I should be able to do this according to the documentation:
       
      https://mongodb.github.io/node-mongodb-native/4.4/classes/MongoClient.html#topology 
       
      https://mongodb.github.io/node-mongodb-native/4.4/classes/Topology.html#isConnected 

            Assignee:
            neal.beeken@mongodb.com Neal Beeken
            Reporter:
            dbeng-pm-bot PM Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: