Class: Types::Tree::BlobType

Inherits:
BaseObject
  • Object
show all
Defined in:
app/graphql/types/tree/blob_type.rb

Overview

rubocop: disable Graphql/AuthorizeTypes This is presented through ‘Repository` that has its own authorization

Instance Method Summary collapse

Methods inherited from BaseObject

accepts, assignable?, authorization, authorize, authorized?, #current_user, #id

Methods included from Gitlab::Graphql::Present

#present, #unpresented

Instance Method Details

#lfs_oidObject



22
23
24
# File 'app/graphql/types/tree/blob_type.rb', line 22

def lfs_oid
  Gitlab::Graphql::Loaders::BatchLfsOidLoader.new(object.repository, object.id).find
end