summaryrefslogtreecommitdiff
path: root/app/graphql/types/tree/submodule_type.rb
blob: 2b47e5c0161d24c9ded950e302f870099b28aa49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# 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
      implements Types::Tree::EntryType

      graphql_name 'Submodule'

      field :web_url, type: GraphQL::STRING_TYPE, null: true
      field :tree_url, type: GraphQL::STRING_TYPE, null: true
    end
    # rubocop: enable Graphql/AuthorizeTypes
  end
end