2019-01-24 16:23:57 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Types
|
|
|
|
class MetadataType < ::Types::BaseObject
|
|
|
|
graphql_name 'Metadata'
|
|
|
|
|
2019-06-18 16:31:06 +00:00
|
|
|
authorize :read_instance_metadata
|
|
|
|
|
2019-10-31 12:06:26 +00:00
|
|
|
field :version, GraphQL::STRING_TYPE, null: false,
|
|
|
|
description: 'Version'
|
|
|
|
field :revision, GraphQL::STRING_TYPE, null: false,
|
|
|
|
description: 'Revision'
|
2019-01-24 16:23:57 +00:00
|
|
|
end
|
|
|
|
end
|