Skip to main content
Module

x/gql/mod.ts>GraphQLHTTP

☁ Universal GraphQL HTTP middleware for Deno
Go to Latest
function GraphQLHTTP
import { GraphQLHTTP } from "https://deno.land/x/gql@1.2.0/mod.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; }