Class: Types::Tree::TreeType

Inherits:
BaseObject
  • Object
show all
Defined in:
app/graphql/types/tree/tree_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

#blobsObject


33
34
35
# File 'app/graphql/types/tree/tree_type.rb', line 33

def blobs
  Gitlab::Graphql::Representation::TreeEntry.decorate(object.blobs, object.repository)
end

#submodulesObject


29
30
31
# File 'app/graphql/types/tree/tree_type.rb', line 29

def submodules
  Gitlab::Graphql::Representation::SubmoduleTreeEntry.decorate(object.submodules, object)
end

#treesObject


25
26
27
# File 'app/graphql/types/tree/tree_type.rb', line 25

def trees
  Gitlab::Graphql::Representation::TreeEntry.decorate(object.trees, object.repository)
end