new GraphiQLHandler()
Methods
graphiQLRequestHeaders(factory) → {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:
| Name | Type | Description |
|---|---|---|
factory |
function |
Returns:
a reference to this, so the API can be used fluently
- Type
- GraphiQLHandler
handle(event)
Something has happened, so handle it.
Parameters:
| Name | Type | Description |
|---|---|---|
event |
RoutingContext | the event to handle |