class GraphQL::TypeValidation
- GraphQL::TypeValidation
- Reference
- Object
Overview
A TypeValidation is used to validate a given input against a TypeDefinition.
Defined in:
graphql-crystal/types/type_validation.crConstructors
Instance Method Summary
-
#accepts?(type_definition : GraphQL::Language::AbstractNode, value) : Bool
Returns true if
value
corresponds totype_definition
.
Instance methods inherited from class Object
debug
debug
Constructor Detail
Instance Method Detail
def accepts?(type_definition : GraphQL::Language::AbstractNode, value) : Bool
#
Returns true if value
corresponds to
type_definition
.