Module: GraphQL::Schema::Member::TypeSystemHelpers Private
- Included in:
- Interface::DefinitionMethods, List, GraphQL::Schema::Member, NonNull
- Defined in:
- lib/graphql/schema/member/type_system_helpers.rb
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
-
#kind ⇒ GraphQL::TypeKinds::TypeKind
private
-
#list? ⇒ Boolean
private
True if this is a list type.
-
#non_null? ⇒ Boolean
private
True if this is a non-nullable type.
-
#to_list_type ⇒ Schema::List
private
Make a list-type representation of this type.
-
#to_non_null_type ⇒ Schema::NonNull
private
Make a non-null-type representation of this type.
Instance Method Details
#kind ⇒ GraphQL::TypeKinds::TypeKind
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
28 29 30 |
# File 'lib/graphql/schema/member/type_system_helpers.rb', line 28 def kind raise NotImplementedError end |
#list? ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns true if this is a list type. A non-nullable list is considered a list.
23 24 25 |
# File 'lib/graphql/schema/member/type_system_helpers.rb', line 23 def list? false end |
#non_null? ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns true if this is a non-nullable type. A nullable list of non-nullables is considered nullable.
18 19 20 |
# File 'lib/graphql/schema/member/type_system_helpers.rb', line 18 def non_null? false end |
#to_list_type ⇒ Schema::List
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns Make a list-type representation of this type
13 14 15 |
# File 'lib/graphql/schema/member/type_system_helpers.rb', line 13 def to_list_type GraphQL::Schema::List.new(self) end |
#to_non_null_type ⇒ Schema::NonNull
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns Make a non-null-type representation of this type
8 9 10 |
# File 'lib/graphql/schema/member/type_system_helpers.rb', line 8 def to_non_null_type GraphQL::Schema::NonNull.new(self) end |