How can i get the @Root that i need in @FieldResolver #859
Unanswered
ashalfarhan
asked this question in
Q&A
Replies: 2 comments 3 replies
-
Show the resolver where you return user document |
Beta Was this translation helpful? Give feedback.
0 replies
-
This one? |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Any suggest how can i get reference to the
User
type or models that i want to get the data fromHere's my code:
UserResolver.ts
User
in entity / typedefUserModel
Then here is what i got the error

I have no idea how to solve this.
Btw, i'm just using mongoose, not typegoose
But when i got someone code has this:
It still gives me the error
Hope anyone can help me 🙏🏼
Thankyou!
Beta Was this translation helpful? Give feedback.
All reactions