Skip to main content
Module

x/remora/deps.ts>GraphQLHTTP

Graphql server builder
Go to Latest
function GraphQLHTTP
import { GraphQLHTTP } from "https://deno.land/x/remora@0.1.0/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 GQLRequest = GQLRequest
optional
Ctx extends { request: Req; } = { request: Req; }

Parameters

unnamed 0: GQLOptions<Ctx, Req>