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
Using Schema.loadClass with a class which inherits from Document will hang up any find operations. #12254
Closed
2 tasks done
Milestone
Comments
WolverinDEV
added a commit
to WolverinDEV/mongoose
that referenced
this issue
Aug 10, 2022
Closed
vkarpov15
added a commit
that referenced
this issue
Sep 4, 2022
…e custom method is set to Mongoose implementation Fix #12254
vkarpov15
added a commit
that referenced
this issue
Sep 4, 2022
vkarpov15
added a commit
that referenced
this issue
Sep 7, 2022
fix(model): make `applyHooks()` and `applyMethods()` handle case where custom method is set to Mongoose implementation
2 tasks
vkarpov15
added a commit
that referenced
this issue
Sep 21, 2022
Uzlopak
pushed a commit
that referenced
this issue
Sep 21, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Prerequisites
Mongoose version
6.5.2
Node.js version
v16.13.0
MongoDB server version
docker latest (c8b57c4bf7e3)
Description
When using
Schema.loadClass
with an class inheriting fromDocument
, loading such entries will stall forever.A simple fix would be:
Steps to Reproduce
Expected Behavior
findOne
finding one entry in the database and return it.The text was updated successfully, but these errors were encountered: