summaryrefslogtreecommitdiff
path: root/app/graphql/types/metadata_type.rb
blob: 1998b036a53b41b7a7789f21bf9b9b30dfec7e1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

module Types
  class MetadataType < ::Types::BaseObject
    graphql_name 'Metadata'

    authorize :read_instance_metadata

    field :version, GraphQL::STRING_TYPE, null: false,
          description: 'Version'
    field :revision, GraphQL::STRING_TYPE, null: false,
          description: 'Revision'
  end
end