GraphQL: Validation Module Cheat Sheet

validate

Validates an AST against a provided Schema.

function validate(
  schema: GraphQLSchema,
  ast: Document,
  rules?: Array<any>
): Array<GraphQLError>

specifiedRules

A list of standard validation rules described in the GraphQL specification.

var specifiedRules: Array<(context: ValidationContext): any>

Leave a Reply

Your email address will not be published. Required fields are marked *