Class: GraphQL::Language::ListType

Inherits:
Struct
  • Object
show all
Defined in:
lib/graphql/language/list_type.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



3
4
5
# File 'lib/graphql/language/list_type.rb', line 3

def type
  @type
end

Instance Method Details

#materialize(schema) ⇒ Object



9
10
11
# File 'lib/graphql/language/list_type.rb', line 9

def materialize(schema)
  GraphQLList.new(type.materialize(schema))
end

#named_typeObject



5
6
7
# File 'lib/graphql/language/list_type.rb', line 5

def named_type
  type.respond_to?(:named_type) ? type.named_type : type
end