2019-05-22 11:43:35 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
module Types
|
|
|
|
module Tree
|
2019-06-18 16:31:06 +00:00
|
|
|
# rubocop: disable Graphql/AuthorizeTypes
|
|
|
|
# This is presented through `Repository` that has its own authorization
|
2019-05-22 11:43:35 +00:00
|
|
|
class SubmoduleType < BaseObject
|
|
|
|
implements Types::Tree::EntryType
|
|
|
|
|
|
|
|
graphql_name 'Submodule'
|
2019-07-17 13:06:19 +00:00
|
|
|
|
|
|
|
field :web_url, type: GraphQL::STRING_TYPE, null: true
|
|
|
|
field :tree_url, type: GraphQL::STRING_TYPE, null: true
|
2019-05-22 11:43:35 +00:00
|
|
|
end
|
2019-06-18 16:31:06 +00:00
|
|
|
# rubocop: enable Graphql/AuthorizeTypes
|
2019-05-22 11:43:35 +00:00
|
|
|
end
|
|
|
|
end
|