Skip to content

@Authorized for Input Types #839

Answered by MichalLytek
zakariaelas asked this question in Q&A
Discussion options

You must be logged in to vote

It's not possible because input types does not have field resolvers.

I would recommend you to have a dedicated mutation for admin with a different input type. This way normal users will know which fields they can provide and what they are allowed to do.

And instead of crud "patch" approach, try to have more business-oriented operations like changeDogName or moveFromShelter instead of having 1:1 mapping of columns.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by zakariaelas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants