validateRequest function

List<ValidationError> validateRequest(
  1. DocumentNode schema,
  2. DocumentNode operation
)

Validates an operation in the context of schema

Assumes valid schema

Implementation

List<ValidationError> validateRequest(
  ast.DocumentNode schema,
  ast.DocumentNode operation,
) {
  final validator = _Validator(
    rules: {},
  );

  return validator.validate(
    node: operation,
  );
}