@graphqland/http-graphql-playground
TypeScript icon, indicating that this package has built-in type declarations

1.0.0-beta.1 • Public • Published

http-graphql-playground

deno land deno doc npm GitHub

HTTP request for graphql-playground with standard Request and Response

Usage

  • createHandler - Create HTTP request handler for graphql-playground.
  • validateRequest - Validate the request is valid GraphQL playground request or not.
import { createHandler } from "https://deno.land/x/http_graphql_playground@$VERSION/mod.ts";
import { serve } from "https://deno.land/std@$VERSION/http/mod.ts";

const handler = createHandler({
  endpoint: "/graphql",
});
await serve(handler);

Spec

The response includes the following response status codes and headers:

Code Content Headers
200 text/html content-type, vary
405 - allow
406 text/plain content-type, vary

License

Copyright © 2022-present graphqland.

Released under the MIT license

Package Sidebar

Install

npm i @graphqland/http-graphql-playground

Weekly Downloads

0

Version

1.0.0-beta.1

License

MIT

Unpacked Size

911 kB

Total Files

50

Last publish

Collaborators

  • miyauci