Package com. trib3. graphql. execution
Types
FunctionDataFetcher that tries to run suspend functions in a CoroutineScope provided by the DataFetchingEnvironment.getContext, if the context is a CoroutineScope. Otherwise runs in a scope with Dispatchers.Default.
SimpleKotlinDataFetcherFactoryProvider subclass that provides a ContextScopeFunctionDataFetcher to allow for structured concurrency based on the scope in the GraphQL context.
Custom Exception Handler implantation allowing control over sanitation, relevance and specificity
Directive wiring that checks for auth before fetching data.
Jackson mixin for ExecutionResults that ensures keys for data/errors/extensions only get written if there is corresponding data. Similar to ExecutionResult.toSpecification, but keeps the object typed as an ExecutionResult instead of converting to a Map
Schema generator hooks implementation that defines scalars for java.time (and threeten-extras) objects and wires up the @GraphQLAuth directive.
Simple GraphQLError implementation that only specified an error message
Instruments a GraphQL response's extensions with the RequestId stored in the logging MDC by the RequestIdFilter
Removes exception from the error JSON serialization keeping it out of the API response and attempts to bubble up the message from the root cause of the exception
Functions
Extension function to convert a GraphQLRequest to an ExecutionInput