-
Type: Bug
-
Resolution: Done
-
Priority: Unknown
-
None
-
Affects Version/s: None
-
Component/s: None
-
Labels:
-
Empty show more show less
-
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
- depends on
-
NODE-4038 Investigate NODE-4037 - Published types for MongoClient are incorrect
- Closed