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}

Public Instance Methods

kind() click to toggle source

@return [GraphQL::TypeKinds::LIST]

# File lib/graphql/schema/list.rb, line 14
def kind
  GraphQL::TypeKinds::LIST
end
list?() click to toggle source

@return [true]

# File lib/graphql/schema/list.rb, line 19
def list?
  true
end
to_graphql() click to toggle source
# File lib/graphql/schema/list.rb, line 9
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 23
def to_type_signature
  "[#{@of_type.to_type_signature}]"
end