class GraphQL::Schema::List
Represents a list type in the schema. Wraps a {Schema::Member} as a list type. @see {Schema::Member::TypeSystemHelpers#to_list_type}
Attributes
of_type[R]
@return [Class, Module] The inner type of this list, the type of which one or more objects may be present.
Public Class Methods
new(of_type)
click to toggle source
# File lib/graphql/schema/list.rb, line 14 def initialize(of_type) @of_type = of_type end
Public Instance Methods
kind()
click to toggle source
# File lib/graphql/schema/list.rb, line 22 def kind GraphQL::TypeKinds::LIST end
list?()
click to toggle source
# File lib/graphql/schema/list.rb, line 30 def list? true end
to_graphql()
click to toggle source
# File lib/graphql/schema/list.rb, line 18 def to_graphql @of_type.graphql_definition.to_list_type end
to_type_signature()
click to toggle source
# File lib/graphql/schema/list.rb, line 34 def to_type_signature "[#{@of_type.to_type_signature}]" end
unwrap()
click to toggle source
# File lib/graphql/schema/list.rb, line 26 def unwrap @of_type.unwrap end