Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GraphiQLHandler

A {@link Route} handler for GraphiQL resources.

Hierarchy

  • GraphiQLHandler

Implements

  • any

Index

Methods

graphiQLRequestHeaders

  • graphiQLRequestHeaders(factory: (arg: RoutingContext) => MultiMap): GraphiQLHandler
  • Customize the HTTP headers to add to GraphQL requests sent by the GraphiQL user interface. The result will be applied on top of the fixed set of headers specified in GraphiQLHandlerOptions.

    This can be useful if, for example, the server is protected by authentication.

    Parameters

    • factory: (arg: RoutingContext) => MultiMap
        • (arg: RoutingContext): MultiMap
        • Parameters

          • arg: RoutingContext

          Returns MultiMap

    Returns GraphiQLHandler

handle

  • handle(arg0: RoutingContext): void
  • Parameters

    • arg0: RoutingContext

    Returns void

Static create

Generated using TypeDoc