TypeError: Cannot read properties of undefined (reading 'getObjectType') #1299
Unanswered
FarhanRafid97
asked this question in
Q&A
Replies: 2 comments
-
Please create a minimal reproducible code example repository. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Ran into this same issue. It was due to the |
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.
-
why when i add @FieldResolver my app crash
@FieldResolver(() => String, { defaultValue: {} })
email(@root() user: User, @ctx() { req }: MyContext) {
if (req.session.userId === user.id) {
return user.email;
}
return '';
}
Beta Was this translation helpful? Give feedback.
All reactions