NAME
GraphQL::Houtou::Validation - GraphQL document validation facade
SYNOPSIS
use GraphQL::Houtou::Validation qw(check_query_cost validate);
my $errors = validate($schema, $source_or_ast);
my $cost_errors = check_query_cost(
$schema, $source_or_ast,
max_cost => 10_000,
default_list_size => 10,
operation_name => 'GetUsers',
);
DESCRIPTION
This module is the public entry point for GraphQL validation. Validation is implemented by the shared XS bundle; there is no Pure Perl validation pass.
check_query_cost applies the schema's field costs and list-size multipliers and returns validation-style error hashrefs when max_cost is exceeded.