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
Embedded discriminators with "tiedValue" dont populate without explicitly specifing "model" #10231
Comments
just wanna add: |
Output:
|
@IslandRhythms what exactly "needs clarification"? |
@hasezoey "needs clarification" means we don't think we have enough info to reasonably try to repro this issue. |
@vkarpov15 i basically know what i means, i just asked what was needed aside from the information already given (i mean versions are there, problem is stated and reproduction script is also provided (and confirmed to reproduce at the time?)) |
Do you want to request a feature or report a bug?
bug
What is the current behavior?
When using Embedded discriminators with
tiedValue
instead of justname
it doesn't populate without also specifyingmodel
on populate callIf the current behavior is a bug, please provide the steps to reproduce.
What is the expected behavior?
to populate without also specifying
model
What are the versions of Node.js, Mongoose and MongoDB you are using? Note that "latest" is not a version.
nodejs: 16.1.0
mongoose: 5.12.7
typescript: 4.2.4
PS: documentation taken from here
Note: populate work when not using
tiedValue
PPS: if needed, there is also an reproduction repository with this code: https://github.com/typegoose/typegoose-testing/tree/verify537
The text was updated successfully, but these errors were encountered: