Replies: 1 comment 3 replies
-
@pbadenski this feature hasn't been removed, we'll investigate and see if this is a bug. Is the issue that TypeScript fails to compile or does it fail at runtime? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In Mongoose 5 we used to be able to use model instance in virtual "ref" property, see below:
This doesn't seem to work in Mongoose 6 and you need specify ref as string:
ref: "User"
. Has this feature been removed in Mongoose 6, or changed and we need to use it differently?I checked both docs and changelog and can't really figure this one out...
Beta Was this translation helpful? Give feedback.
All reactions