class GraphqlMigrateExecution::TypeDefinition
Attributes
Public Class Methods
Source
# File lib/graphql_migrate_execution/type_definition.rb, line 4 def initialize(name, migration) @name = name @migration = migration @field_definitions = {} @resolver_methods = {} @is_resolver = false end
Public Instance Methods
Source
# File lib/graphql_migrate_execution/type_definition.rb, line 16 def field_definition(name, node) @field_definitions[name] = FieldDefinition.new(self, name, node) end
Source
# File lib/graphql_migrate_execution/type_definition.rb, line 20 def resolver_method(name, node) @resolver_methods[name] = ResolverMethod.new(name, node) end
Source
# File lib/graphql_migrate_execution/type_definition.rb, line 24 def returns_hash? @resolver_methods.each_value.first.returns_hash? end
Source
# File lib/graphql_migrate_execution/type_definition.rb, line 28 def returns_string_hash? @resolver_methods.each_value.first.returns_string_hash? end