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

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

    authorize :read_instance_metadata

    field :version, GraphQL::STRING_TYPE, null: false # rubocop:disable Graphql/Descriptions
    field :revision, GraphQL::STRING_TYPE, null: false # rubocop:disable Graphql/Descriptions
  end
end