HTTP request for graphql-playground
with standard Request
and Response
createHandler
- Create HTTP request handler forgraphql-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);
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 |
Copyright © 2022-present graphqland.
Released under the MIT license