2019-09-04 21:01:54 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
module Types
|
|
|
|
module Tree
|
2019-09-30 21:07:59 +05:30
|
|
|
# rubocop: disable Graphql/AuthorizeTypes
|
|
|
|
# This is presented through `Repository` that has its own authorization
|
2019-09-04 21:01:54 +05:30
|
|
|
class TreeEntryType < BaseObject
|
|
|
|
implements Types::Tree::EntryType
|
|
|
|
|
|
|
|
present_using TreeEntryPresenter
|
|
|
|
|
|
|
|
graphql_name 'TreeEntry'
|
|
|
|
description 'Represents a directory'
|
|
|
|
|
|
|
|
field :web_url, GraphQL::STRING_TYPE, null: true
|
|
|
|
end
|
2019-09-30 21:07:59 +05:30
|
|
|
# rubocop: enable Graphql/AuthorizeTypes
|
2019-09-04 21:01:54 +05:30
|
|
|
end
|
|
|
|
end
|