Class: GraphQL::Schema::List
- Defined in:
- lib/graphql/schema/list.rb
Overview
Represents a list type in the schema. Wraps a Member as a list type.
Instance Attribute Summary
Attributes inherited from Wrapper
Instance Method Summary collapse
Methods inherited from Wrapper
Methods included from Member::TypeSystemHelpers
#non_null?, #to_list_type, #to_non_null_type
Methods included from Member::CachedGraphQLDefinition
#graphql_definition, #initialize_copy
Constructor Details
This class inherits a constructor from GraphQL::Schema::Wrapper
Instance Method Details
#kind ⇒ GraphQL::TypeKinds::LIST
14 15 16 |
# File 'lib/graphql/schema/list.rb', line 14 def kind GraphQL::TypeKinds::LIST end |
#list? ⇒ true
19 20 21 |
# File 'lib/graphql/schema/list.rb', line 19 def list? true end |
#to_graphql ⇒ Object
9 10 11 |
# File 'lib/graphql/schema/list.rb', line 9 def to_graphql @of_type.graphql_definition.to_list_type end |
#to_type_signature ⇒ Object
23 24 25 |
# File 'lib/graphql/schema/list.rb', line 23 def to_type_signature "[#{@of_type.to_type_signature}]" end |