debian-mirror-gitlab/app/graphql/types/release_source_type.rb
2020-08-09 17:44:08 +05:30

16 lines
448 B
Ruby

# frozen_string_literal: true
module Types
class ReleaseSourceType < BaseObject
graphql_name 'ReleaseSource'
description 'Represents the source code attached to a release in a particular format'
authorize :download_code
field :format, GraphQL::STRING_TYPE, null: true,
description: 'Format of the source'
field :url, GraphQL::STRING_TYPE, null: true,
description: 'Download URL of the source'
end
end