-
-
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
document.populate() throws when populating immutable array of refs with String IDs #10264
Labels
confirmed-bug
We've confirmed this is a bug in Mongoose and will fix it.
Milestone
Comments
vkarpov15
added
the
has repro script
There is a repro script, the Mongoose devs need to confirm that it reproduces the issue
label
May 19, 2021
I'm not getting an identical error to yours but I am getting a similar error.
|
IslandRhythms
added
confirmed-bug
We've confirmed this is a bug in Mongoose and will fix it.
and removed
has repro script
There is a repro script, the Mongoose devs need to confirm that it reproduces the issue
labels
May 21, 2021
vkarpov15
added a commit
that referenced
this issue
May 21, 2021
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?
Report a bug, possibly related or at least adjacent to #10159.
What is the current behavior?
When trying to populate an array of immutable
ref
s, whose reference ID type isString
, mongoose throws the following error:If the current behavior is a bug, please provide the steps to reproduce.
Repro script:
What is the expected behavior?
This should run without an error, and the first entry in
friends
should be populated.What are the versions of Node.js, Mongoose and MongoDB you are using? Note that "latest" is not a version.
Node
15.14.0
Mongoose
5.12.10
MongoDB
4.4.6
The text was updated successfully, but these errors were encountered: