Method: GraphQL::Query::ValidationPipeline#initialize
- Defined in:
- lib/graphql/query/validation_pipeline.rb
#initialize(query:, parse_error:, operation_name_error:, max_depth:, max_complexity:) ⇒ ValidationPipeline
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of ValidationPipeline.
19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/graphql/query/validation_pipeline.rb', line 19 def initialize(query:, parse_error:, operation_name_error:, max_depth:, max_complexity:) @validation_errors = [] @parse_error = parse_error @operation_name_error = operation_name_error @query = query @schema = query.schema @max_depth = max_depth @max_complexity = max_complexity @has_validated = false end |