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

submodule_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: 8f462011f0f3c70ffe6ed5be6385cc8a014ce7b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# frozen_string_literal: true
module Types
  module Tree
    # rubocop: disable Graphql/AuthorizeTypes
    # This is presented through `Repository` that has its own authorization
    class SubmoduleType < BaseObject
      graphql_name 'Submodule'

      implements Types::Tree::EntryType

      field :tree_url, type: GraphQL::Types::String, null: true,
            description: 'Tree URL for the sub-module.'
      field :web_url, type: GraphQL::Types::String, null: true,
            description: 'Web URL for the sub-module.'
    end
    # rubocop: enable Graphql/AuthorizeTypes
  end
end