import { GraphQLHTTP } from "https://deno.land/x/gql@1.2.2/mod.ts";
Create a new GraphQL HTTP middleware with schema, context etc
Examples
Example 1
Example 1
const graphql = await GraphQLHTTP({ schema })
for await (const req of s) graphql(req)
Type Parameters
optional
Req extends GQLRequest = GQLRequestParameters
unnamed 0: GQLOptions<Ctx, Req>