module GraphQL::Schema::Member::TypeSystemHelpers

Public Instance Methods

kind() click to toggle source

@return [GraphQL::TypeKinds::TypeKind]

# File lib/graphql/schema/member/type_system_helpers.rb, line 32
def kind
  raise NotImplementedError
end
list?() click to toggle source

@return [Boolean] true if this is a list type. A non-nullable list is considered a list.

# File lib/graphql/schema/member/type_system_helpers.rb, line 23
def list?
  false
end
non_null?() click to toggle source

@return [Boolean] true if this is a non-nullable type. A nullable list of non-nullables is considered nullable.

# File lib/graphql/schema/member/type_system_helpers.rb, line 18
def non_null?
  false
end
to_list_type() click to toggle source

@return [Schema::List] Make a list-type representation of this type

# 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() click to toggle source

@return [Schema::NonNull] Make a non-null-type representation of this type

# File lib/graphql/schema/member/type_system_helpers.rb, line 8
def to_non_null_type
  GraphQL::Schema::NonNull.new(self)
end
to_type_signature() click to toggle source
# File lib/graphql/schema/member/type_system_helpers.rb, line 27
def to_type_signature
  graphql_name
end