Skip to content

Validate argument in many mutations #1601

Answered by samuelAndalon
huehnerlady asked this question in Q&A
Discussion options

You must be logged in to vote

Hello, have you take a look at GraphQL java instrumentations ? https://www.graphql-java.com/documentation/instrumentation/

that might be what you are looking for, with the begin execution execution field you can have access to the arguments and apply validation over them, then you could return your error from there and apply the instrumentation to the specific GraphQL operations you want.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@huehnerlady
Comment options

@huehnerlady
Comment options

Answer selected by huehnerlady
Comment options

You must be logged in to vote
2 replies
@huehnerlady
Comment options

@dariuszkuc
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants