class GraphQL::TypeValidation

Overview

A TypeValidation is used to validate a given input against a TypeDefinition.

Defined in:

graphql-crystal/types/type_validation.cr

Constructors

Instance Method Summary

Instance methods inherited from class Object

debug debug

Constructor Detail

def self.new(types : Hash(String, Language::TypeDefinition)) #

[View source]

Instance Method Detail

def accepts?(type_definition : GraphQL::Language::AbstractNode, value) : Bool #

Returns true if value corresponds to type_definition.


[View source]