Module: GraphQL::Schema::Member::TypeSystemHelpers Private

Included in:
Interface::DefinitionMethods, GraphQL::Schema::Member, Wrapper
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

Instance Method Details

#kindGraphQL::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.

Returns:

Raises:

  • (NotImplementedError)


32
33
34
# File 'lib/graphql/schema/member/type_system_helpers.rb', line 32

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.

Returns:

  • (Boolean)

    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.

Returns:

  • (Boolean)

    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_typeSchema::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.

Returns:

  • (Schema::List)

    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_typeSchema::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.

Returns:



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

#to_type_signatureObject

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.



27
28
29
# File 'lib/graphql/schema/member/type_system_helpers.rb', line 27

def to_type_signature
  graphql_name
end