Skip to content

Conversation

@vkarpov15
Copy link
Collaborator

Re: #14506
Re: #9048

Summary

As a general rule we should move any connection helper that isn't just transparently calling this.db.functionName() to node-mongodb-native driver. listDatabases() is close, but the extra admin() call makes it violate this rule.

Also refactored out the this.readyState === STATES.connecting check into a helper so we aren't copy/pasting that in every helper.

Examples

@vkarpov15 vkarpov15 merged commit 964fa85 into 8.4 Apr 10, 2024
@hasezoey hasezoey deleted the vkarpov15/list-databases-fix branch April 11, 2024 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants