Skip to main content
Module

x/dgql/deps.ts>serve

0 config deno full featured graphql side car. Generate gql from any datasource.
Latest
function serve
import { serve } from "https://deno.land/x/dgql@v0.0.2/deps.ts";

Create a HTTP server

import { serve } from "https://deno.land/std/http/server.ts";
const body = "Hello World\n";
const server = serve({ port: 8000 });
for await (const req of server) {
  req.respond({ body });
}

Parameters

addr: string | HTTPOptions

Returns

Server