gitlab-org--gitlab-foss/app/graphql/types/tree/tree_entry_type.rb

21 lines
686 B
Ruby
Raw Normal View History

2019-05-22 11:43:35 +00:00
# frozen_string_literal: true
module Types
module Tree
# 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'
implements Types::Tree::EntryType
present_using TreeEntryPresenter
field :web_path, GraphQL::Types::String, null: true,
description: 'Web path for the tree entry (directory).'
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
# rubocop: enable Graphql/AuthorizeTypes
2019-05-22 11:43:35 +00:00
end
end