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

x/drash/src/services/graphql/graphql.ts>GraphQL.validateSchema

A microframework for Deno's HTTP server with zero third-party dependencies
Go to Latest
function GraphQL.validateSchema
import { GraphQL } from "https://deno.land/x/drash@v2.8.1/src/services/graphql/graphql.ts";
const { validateSchema } = GraphQL;

Implements the "Type Validation" sub-sections of the specification's "Type System" section.

Validation runs synchronously, returning an array of encountered errors, or an empty array if no errors were encountered and the Schema is valid.

Returns

ReadonlyArray<GraphQLError>