Protect fields from GraphQL querying #1298
-
I have this User model in TypeGraphQL with TypeGoose:
But currently one could query the (albeit encrypted) password using the GraphQL querying. Is there a way to make the password field not queryable? |
Beta Was this translation helpful? Give feedback.
Answered by
MichalLytek
Jun 17, 2022
Replies: 1 comment
-
Just don't put |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Bowis
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just don't put
@Field
above the field