src/GraphQL.php
protected function getValidationRules(): array
    {
        return [
            QueryComplexity::class => new QueryComplexity(config('lighthouse.security.max_query_complexity', 0)),
            QueryDepth::class => new QueryDepth(config('lighthouse.security.max_query_depth', 0)),
            DisableIntrospection::class => new DisableIntrospection(config('lighthouse.security.disable_introspection', false)),
        ];
    }
protected function getValidationRules(): array
    {
        return [
            QueryComplexity::class => new QueryComplexity(config('lighthouse.security.max_query_complexity', 0)),
            QueryDepth::class => new QueryDepth(config('lighthouse.security.max_query_depth', 0)),
            DisableIntrospection::class => new DisableIntrospection(config('lighthouse.security.disable_introspection', false)),
        ];
    }
protected function getValidationRules ( ) : array { return [ QueryComplexity :: class => new QueryComplexity ( config ( 'lighthouse.security.max_query_complexity' , 0 ) ) , QueryDepth :: class => new QueryDepth ( config ( 'lighthouse.security.max_query_depth' , 0 ) ) , DisableIntrospection :: class => new DisableIntrospection ( config ( 'lighthouse.security.disable_introspection' , false ) ) , ] ; }
Construct the validation rules with values given in the config.

@return \GraphQL\Validator\Rules\ValidationRule[]
Construct the validation rules with values given in the config .