2019-05-22 11:43:35 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
module Types
|
|
|
|
module Tree
|
2019-06-18 16:31:06 +00:00
|
|
|
# rubocop: disable Graphql/AuthorizeTypes
|
|
|
|
# This is presented through `Repository` that has its own authorization
|
2019-05-22 11:43:35 +00:00
|
|
|
class TreeEntryType < BaseObject
|
|
|
|
graphql_name 'TreeEntry'
|
|
|
|
description 'Represents a directory'
|
2019-06-04 13:38:18 +00:00
|
|
|
|
2022-02-15 12:14:49 +00:00
|
|
|
implements Types::Tree::EntryType
|
|
|
|
present_using TreeEntryPresenter
|
|
|
|
|
2021-07-23 12:09:05 +00:00
|
|
|
field :web_path, GraphQL::Types::String, null: true,
|
2021-02-05 15:09:28 +00:00
|
|
|
description: 'Web path for the tree entry (directory).'
|
2022-02-23 18:16:59 +00:00
|
|
|
field :web_url, GraphQL::Types::String, null: true,
|
|
|
|
description: 'Web URL for the tree entry (directory).'
|
2019-05-22 11:43:35 +00:00
|
|
|
end
|
2019-06-18 16:31:06 +00:00
|
|
|
# rubocop: enable Graphql/AuthorizeTypes
|
2019-05-22 11:43:35 +00:00
|
|
|
end
|
|
|
|
end
|