2019-07-07 11:18:12 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Types
|
|
|
|
class MetadataType < ::Types::BaseObject
|
|
|
|
graphql_name 'Metadata'
|
|
|
|
|
|
|
|
authorize :read_instance_metadata
|
|
|
|
|
2019-12-26 22:10:19 +05:30
|
|
|
field :version, GraphQL::STRING_TYPE, null: false,
|
2021-03-11 19:13:27 +05:30
|
|
|
description: 'Version.'
|
2019-12-26 22:10:19 +05:30
|
|
|
field :revision, GraphQL::STRING_TYPE, null: false,
|
2021-03-11 19:13:27 +05:30
|
|
|
description: 'Revision.'
|
2019-07-07 11:18:12 +05:30
|
|
|
end
|
|
|
|
end
|