validateOperation function

List<ValidationError> validateOperation(
  1. Node operation
)

Validates an operation without knowing anything about the schema

Implementation

List<ValidationError> validateOperation(
  ast.Node operation,
) {
  final validator = _Validator(
    rules: {},
  );

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