Sha256: a1a36dbfd4633d760be839cbf6016553a0fd34f9b723b1a655d9e3ac8fa8d8c3

Contents?: true

Size: 368 Bytes

Versions: 23

Compression:

Stored size: 368 Bytes

Contents

# frozen_string_literal: true

require 'graphql'

module Osso
  module GraphQL
    module Types
      class Error < Types::BaseObject
        description 'A mutation error'

        field :attribute, String, null: false
        field :message, String, null: false

        def self.authorized?(_object, _context)
          true
        end
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
osso-0.0.5.pre.alpha lib/osso/graphql/types/error.rb
osso-0.0.4 lib/osso/graphql/types/error.rb
osso-0.0.3.27 lib/osso/graphql/types/error.rb