Package-level declarations

Types

Link copied to clipboard
abstract class CoroutineBaseLoader<K, V>(val coroutineContext: CoroutineContext = Dispatchers.Default) : KotlinDataLoader<K, V>

Base class for implementing a KotlinDataLoader that ensures the BatchLoaderEnvironment.context defaults to a GraphQLContext and provides access to the CoroutineScope contained in that context.

Link copied to clipboard
abstract class CoroutineBatchLoader<K, V> : CoroutineBaseLoader<K, V> , BatchLoaderWithContext<K, V>

Convenience class for implementing a KotlinDataLoader that provides a BatchLoaderWithContext using suspend functions/coroutines to execute the load. Will run with a BatchLoaderEnvironment.context that is a GraphQLContext and execute with the CoroutineScope contained in that context.

Link copied to clipboard
abstract class CoroutineMappedBatchLoader<K, V> : CoroutineBaseLoader<K, V> , MappedBatchLoaderWithContext<K, V>

Convenience class for implementing a KotlinDataLoader that provides a MappedBatchLoaderWithContext using suspend functions/coroutines to execute the load. Will run with a BatchLoaderEnvironment.context that is a GraphQLContext and execute with the CoroutineScope contained in that context.

Link copied to clipboard
class CustomDataFetcherExceptionHandler : DataFetcherExceptionHandler

Custom Exception Handler implantation allowing control over sanitation, relevance and specificity

Link copied to clipboard
annotation class GraphQLAuth(val roles: Array<String> = [])

Annotation to be used on field definitions to restrict access based on the context Principal's role. If no roles are specified, any authenticated Principal will be authorized to access the annotated field.

Link copied to clipboard
class GraphQLAuthDirectiveWiring(val authorizer: Authorizer<Principal>?) : KotlinSchemaDirectiveWiring

Directive wiring that checks for auth before fetching data.

Link copied to clipboard
class LeakyCauldronHooks @Inject constructor(@Nullable authorizer: Authorizer<Principal>?, manualWiring: Map<String, KotlinSchemaDirectiveWiring>) : FlowSubscriptionSchemaGeneratorHooks

Schema generator hooks implementation that defines scalars for java.time (and threeten-extras) objects and wires up the @GraphQLAuth directive.

Link copied to clipboard
class MessageGraphQLError(val msg: String?) : GraphQLError

Simple GraphQLError implementation that only specified an error message

Link copied to clipboard
class RequestIdInstrumentation : SimplePerformantInstrumentation

Instruments a GraphQL response's extensions with the RequestId stored in the logging MDC by the RequestIdFilter

Link copied to clipboard
class SanitizedGraphQLError(path: ResultPath, exception: Throwable, sourceLocation: SourceLocation) : ExceptionWhileDataFetching

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

Properties

Link copied to clipboard
internal val LOCAL_DATETIME_SCALAR: GraphQLScalarType
Link copied to clipboard
private val log: KLogger
Link copied to clipboard
internal val YEAR_MONTH_SCALAR: GraphQLScalarType
Link copied to clipboard
internal val YEAR_QUARTER_SCALAR: GraphQLScalarType
Link copied to clipboard
internal val YEAR_SCALAR: GraphQLScalarType