Interface GraphQlEntryPoint.Interceptor
- Enclosing class:
GraphQlEntryPoint
public static interface GraphQlEntryPoint.Interceptor
Interceptor of a GraphQL resolver entry point.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceInvocation chain for GraphQL entry point. -
Method Summary
Modifier and TypeMethodDescriptionproceed(InterceptionContext interceptionContext, GraphQlEntryPoint.Interceptor.Chain chain, graphql.schema.DataFetchingEnvironment environment) Method to implement interceptor logic.
-
Method Details
-
proceed
Object proceed(InterceptionContext interceptionContext, GraphQlEntryPoint.Interceptor.Chain chain, graphql.schema.DataFetchingEnvironment environment) throws Exception Method to implement interceptor logic.- Parameters:
interceptionContext- context with invocation metadatachain- invocation chain, interceptor must call(DataFetchingEnvironment)environment- GraphQL Java data fetching environment; the GraphQL context containsExecutionContext.HELIDON_CONTEXT_KEYandExecutionContext.EXECUTION_CONTEXT_KEY- Returns:
- resolver result; follows GraphQL Java resolver semantics, so
nullis a valid result for nullable GraphQL fields - Throws:
Exception- in case the invocation fails, or the interceptor needs to stop processing with an exception
-