On this page

validateGraphQlDocuments

The validateGraphQlDocuments function exported by @graphql-tools/utils.

validateGraphQlDocuments(schema, documents, rules?): readonly GraphQLError[]

Defined in: packages/utils/src/validate-documents.ts:15

Parameters

schema

GraphQLSchema

documents

DocumentNode[]

rules?

ValidationRule[] = ...

Returns

readonly GraphQLError[]