Package-level declarations

Functions

Link copied to clipboard
fun graphQL(handler: GraphQLHandler, badRequestFn: (LensFailure) -> Response = { Response(BAD_REQUEST) }): RoutingHttpHandler

Routing plugin for GraphQL handling.

fun <T> graphQL(handler: GraphQLWithContextHandler<T>, getContext: (Request) -> T, badRequestFn: (LensFailure) -> Response = { Response(BAD_REQUEST) }): RoutingHttpHandler

Routing plugin for GraphQL handling with contextual data.

Link copied to clipboard
fun graphQLPlayground(graphQLRoute: Uri, title: String = "GraphQL Playground"): RoutingHttpHandler

Serves the GraphQL playground content.