Skip to main content
Module

x/dgql/deps.ts>GraphQLHTTP

0 config deno full featured graphql side car. Generate gql from any datasource.
Latest
function GraphQLHTTP
import { GraphQLHTTP } from "https://deno.land/x/dgql@v0.0.2/deps.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 Request = Request
optional
Ctx extends { request: Req; } = { request: Req; }

Parameters

options: GraphQLOptions<Ctx, Req>