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.1.2 lib/osso/graphql/types/error.rb
osso-0.1.1 lib/osso/graphql/types/error.rb
osso-0.1.0 lib/osso/graphql/types/error.rb
osso-0.0.11 lib/osso/graphql/types/error.rb
osso-0.0.10 lib/osso/graphql/types/error.rb
osso-0.0.8 lib/osso/graphql/types/error.rb
osso-0.0.7 lib/osso/graphql/types/error.rb
osso-0.0.6 lib/osso/graphql/types/error.rb
osso-0.0.6.alpha lib/osso/graphql/types/error.rb
osso-0.0.5 lib/osso/graphql/types/error.rb
osso-0.0.5.pre.lambda lib/osso/graphql/types/error.rb
osso-0.0.5.pre.kappa lib/osso/graphql/types/error.rb
osso-0.0.5.pre.iota lib/osso/graphql/types/error.rb
osso-0.0.5.pre.theta lib/osso/graphql/types/error.rb
osso-0.0.5.pre.eta lib/osso/graphql/types/error.rb
osso-0.0.5.pre.zeta lib/osso/graphql/types/error.rb
osso-0.0.5.pre.epsilon lib/osso/graphql/types/error.rb
osso-0.0.5.pre.delta lib/osso/graphql/types/error.rb
osso-0.0.5.pre.gamma lib/osso/graphql/types/error.rb
osso-0.0.5.pre.beta lib/osso/graphql/types/error.rb