Spring Boot Graphql: How can I pre-process an individual query/mutation before it runs the controller method?

Spring Boot Graphql: How can I pre-process an individual query/mutation before it runs the controller method?


0

I want to add an annotation to my controller methods that is used to check if the user can perform an action or access a piece of data before the controller method is called.

I want to be able to check each individual query/mutation, rather than each http request which may come with multiple queries or mutations.

I assume Spring’s GraphQL framework has a way of intercepting graphql queries/mutations before (and probably after) the corresponding controller method is run, but I don’t know what to call it and thus haven’t been able to find documentation or a tutorial on it.

Share
Improve this question


Load 6 more related questions


Show fewer related questions

0

Reset to default



Browse other questions tagged

or ask your own question.

Leave a Reply

Your email address will not be published. Required fields are marked *