-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add 'createConnection' event to Mongoose global #9985
Labels
new feature
This change adds new functionality, like a new method or class
Milestone
Comments
vkarpov15
added
the
new feature
This change adds new functionality, like a new method or class
label
Mar 1, 2021
This was referenced Mar 11, 2021
Closed
This was referenced Mar 13, 2021
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Do you want to request a feature or report a bug?
Feature
What is the current behavior?
Right now there's no way to watch Mongoose for newly created connections
What is the expected behavior?
mongoose.on('createConnection', conn => console.log(conn.id)); // 1
What are the versions of Node.js, Mongoose and MongoDB you are using? Note that "latest" is not a version.
Mongoose 5.11.x
The text was updated successfully, but these errors were encountered: