-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Scope driver to Mongoose instance #12638
Milestone
Comments
vkarpov15
added a commit
that referenced
this issue
Dec 26, 2022
vkarpov15
added a commit
that referenced
this issue
Dec 27, 2022
… relying on driver to import Binary, ObjectId, Decimal128 Re: #12638
vkarpov15
added a commit
that referenced
this issue
Dec 28, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Prerequisites
Issue
Right now, we only support one driver per Mongoose module.
require('./lib/driver')
is a singleton.Ideally, we'd instead have
driver
as a property on a Mongoose instance. So a new Mongoose instancenew mongoose.Mongoose()
can have a different driver.I suspect this will also help clean up some circular dependencies and other build issues (like #12335).
Something to consider for 7.0.
The text was updated successfully, but these errors were encountered: