Welcome to mirror list, hosted at ThFree Co, Russian Federation.

tree_entry_type.rb « tree « types « graphql « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: cdc84c8e31862a398e08524c5ce169a185d85a17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# frozen_string_literal: true
module Types
  module Tree
    # rubocop: disable Graphql/AuthorizeTypes
    # This is presented through `Repository` that has its own authorization
    class TreeEntryType < BaseObject
      graphql_name 'TreeEntry'
      description 'Represents a directory'

      implements Types::Tree::EntryType
      present_using TreeEntryPresenter

      field :web_url, GraphQL::Types::String, null: true,
            description: 'Web URL for the tree entry (directory).'
      field :web_path, GraphQL::Types::String, null: true,
            description: 'Web path for the tree entry (directory).'
    end
    # rubocop: enable Graphql/AuthorizeTypes
  end
end