debian-mirror-gitlab/app/graphql/types/tree/tree_entry_type.rb

22 lines
681 B
Ruby
Raw Normal View History

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'
2020-03-13 15:44:24 +05:30
field :web_url, GraphQL::STRING_TYPE, null: true,
description: 'Web URL for the tree entry (directory)'
2020-10-24 23:57:45 +05:30
field :web_path, GraphQL::STRING_TYPE, null: true,
description: 'Web path for the tree entry (directory)'
2019-09-04 21:01:54 +05:30
end
2019-09-30 21:07:59 +05:30
# rubocop: enable Graphql/AuthorizeTypes
2019-09-04 21:01:54 +05:30
end
end