Interface to describe a class that can intercept GraphQL data fetchers and prevent the execution of their functionality.
Type Params | Return Type | Name and description |
---|---|---|
|
boolean |
onCustomMutation(java.lang.String name, DataFetchingEnvironment environment) This method will be executed before custom mutation operations provided by the user of this library. |
|
boolean |
onCustomQuery(java.lang.String name, DataFetchingEnvironment environment) This method will be executed before custom query operations provided by the user of this library. |
|
boolean |
onMutation(DataFetchingEnvironment environment, GraphQLDataFetcherType type) This method will be executed before mutation operations provided by this library. |
|
boolean |
onQuery(DataFetchingEnvironment environment, GraphQLDataFetcherType type) This method will be executed before query operations provided by this library. |
This method will be executed before custom mutation operations provided by the user of this library.
name
- The name of the operation attempting to be executedenvironment
- The data fetching environment provided by GraphQLThis method will be executed before custom query operations provided by the user of this library.
name
- The name of the operation attempting to be executedenvironment
- The data fetching environment provided by GraphQLThis method will be executed before mutation operations provided by this library.
environment
- The data fetching environment provided by GraphQLtype
- The data fetcher returnType. Either GraphQLDataFetcherType#CREATE#CREATE,
GraphQLDataFetcherType#UPDATE#UPDATE, or GraphQLDataFetcherType#DELETE#DELETEThis method will be executed before query operations provided by this library.
environment
- The data fetching environment provided by GraphQLtype
- The data fetcher returnType. Either GraphQLDataFetcherType#GET#GET or
GraphQLDataFetcherType#LIST#LIST