Method: GraphQL::StaticValidation::LiteralValidator#initialize
- Defined in:
- lib/graphql/static_validation/literal_validator.rb
#initialize(context:) ⇒ LiteralValidator
Returns a new instance of LiteralValidator.
6 7 8 9 10 11 |
# File 'lib/graphql/static_validation/literal_validator.rb', line 6 def initialize(context:) @context = context @types = context.types @invalid_response = GraphQL::Query::InputValidationResult.new(valid: false, problems: []) @valid_response = GraphQL::Query::InputValidationResult.new(valid: true, problems: []) end |