Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/http_graphql_playground/validate.ts>validateRequest

HTTP request for graphql-playground with standard Request and Response
Latest
function validateRequest
import { validateRequest } from "https://deno.land/x/http_graphql_playground@1.0.0-beta.1/validate.ts";

Validate the request is valid GraphQL playground request or not.

Returns

[true] | [true, { headers: HeadersInit; }] | [false, HttpError]