[Typescript] How to extend HydratedDocumentFromSchema
#15496
SwapnilSoni1999
started this conversation in
General
Replies: 1 comment
-
If what you're doing is the following:
Then your best bet would be something like |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a user schema in which there's a
plans
property which is a reference to other schema.The thing is I wanna extend populated doc and my functions are in seperate files
and I'm using
user: HydratedUser
as function argument. How to typesafe it for plans:[]I have my
PlanSchema
andHydratedPlan
as wellBeta Was this translation helpful? Give feedback.
All reactions