Skip to main content
Module

x/gql/types.ts>GQLOptions

☁ Universal GraphQL HTTP middleware for Deno
Go to Latest
interface GQLOptions
implements Omit<GraphQLArgs, "source">
import { type GQLOptions } from "https://deno.land/x/gql@1.1.2/types.ts";

gql options

Type Parameters

optional
Context = any
optional
Req extends GQLRequest = GQLRequest

Properties

optional
context: (val: Req) => Context | Promise<Context>
optional
graphiql: boolean

GraphQL playground

optional
headers: HeadersInit

Custom headers for responses

optional
playgroundOptions: Omit<RenderPageOptions, "endpoint">

Custom options for GraphQL Playground