Class: Types::Repository::BlobType
- Inherits:
-
BaseObject
- Object
- GraphQL::Schema::Object
- BaseObject
- Types::Repository::BlobType
- Defined in:
- app/graphql/types/repository/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
Instance Method Details
#lfs_oid ⇒ Object
146 147 148 |
# File 'app/graphql/types/repository/blob_type.rb', line 146 def lfs_oid Gitlab::Graphql::Loaders::BatchLfsOidLoader.new(object.repository, object.id).find end |
#raw_text_blob ⇒ Object
142 143 144 |
# File 'app/graphql/types/repository/blob_type.rb', line 142 def raw_text_blob object.data unless object.binary? end |