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

Published types for MongoClient are incorrect

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

      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:
            gbirkeland@quantum-intl.com Gerrit Birkeland
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: