Skip to main content
Latest
function GraphQLHTTP
import { GraphQLHTTP } from "https://deno.land/x/kilatgraphql@16.6.0-1/http.ts";

Create a new GraphQL HTTP middleware with schema, context etc

Examples

Example 1

const graphql = await GraphQLHTTP({ schema })

for await (const req of s) graphql(req)

Type Parameters

optional
Req extends GQLRequest = GQLRequest
optional
Ctx extends { request: Req; } = { request: Req; }