Skip to Content
GraphQL Tools
DocumentationAPI@graphql-tools/utilssrcfunctionsvalidateGraphQlDocuments

Function: validateGraphQlDocuments()

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[]