interface GraphQLFetcherInterceptor
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 |
|---|---|---|
|
abstract boolean |
onCustomMutation(java.lang.String name, graphql.schema.DataFetchingEnvironment environment)This method will be executed before custom mutation operations provided by the user of this library. |
|
abstract boolean |
onCustomQuery(java.lang.String name, graphql.schema.DataFetchingEnvironment environment)This method will be executed before custom query operations provided by the user of this library. |
|
abstract boolean |
onMutation(graphql.schema.DataFetchingEnvironment environment, GraphQLDataFetcherType type)This method will be executed before mutation operations provided by this library. |
|
abstract boolean |
onQuery(graphql.schema.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,
GraphQLDataFetcherType.UPDATE, or GraphQLDataFetcherType.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 or
GraphQLDataFetcherType.LIST