Method: GraphQL::StaticValidation::LiteralValidator#validate

Defined in:
lib/graphql/static_validation/literal_validator.rb

#validate(ast_value, type) ⇒ Object



13
14
15
16
17
# File 'lib/graphql/static_validation/literal_validator.rb', line 13

def validate(ast_value, type)
  catch(:invalid) do
    recursively_validate(ast_value, type)
  end
end