Class: GraphQL::ResultCache::Introspection::FieldType

Inherits:
Introspection::FieldType
  • Object
show all
Defined in:
lib/graphql/result_cache/introspection/field_type.rb

Instance Method Summary collapse

Instance Method Details

#typeObject



6
7
8
9
# File 'lib/graphql/result_cache/introspection/field_type.rb', line 6

def type
  return @object.type unless @object.respond_to?(:original_return_type_not_null)
  @object.original_return_type_not_null && !@object.type.non_null? ? @object.type.to_non_null_type : @object.type
end