-
-
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
Self populating doesn't work in 6.1.8 #11289
Comments
What is Also, what is the expected behavior versus the observed behavior? |
Think that I want to do Now, in |
"this is referring to itself" <-- no idea what this means. I suspect that Please provide a complete repro script that demonstrates the behavior you're seeing. |
@vkarpov15
|
@AndreyKomin the script as written worked by accident, and isn't a feature that Mongoose supports. The problem is that, in your script, Mongoose 5 interpretted const historySchema = new mongoose.Schema({
data: String,
parents: [{ type: mongoose.ObjectId, ref: 'history' }],
}) In Mongoose 6, we also don't fall back to using the |
Look at
parents
. It worked perfectly in^5.13.14
but not in^6.1.8
.I tried some ways to make it work but unfortunately without any effect.
The text was updated successfully, but these errors were encountered: