gitlab-org--gitlab-foss/app/graphql/types/tree/submodule_type.rb

19 lines
586 B
Ruby
Raw Normal View History

2019-05-22 11:43:35 +00:00
# frozen_string_literal: true
module Types
module Tree
# 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'
field :web_url, type: GraphQL::STRING_TYPE, null: true,
description: 'Web URL for the sub-module'
field :tree_url, type: GraphQL::STRING_TYPE, null: true,
description: 'Tree URL for the sub-module'
2019-05-22 11:43:35 +00:00
end
# rubocop: enable Graphql/AuthorizeTypes
2019-05-22 11:43:35 +00:00
end
end