o2web/graphql-auth

View on GitHub
app/graphql/types/auth/error.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

class Types::Auth::Error < GraphQL::Schema::Object
  description 'Form error'

  field :field, String, null: false do
    description 'Field of the error'
  end

  field :message, String, null: false do
    description 'Error message'
  end

  field :details, GraphQL::Types::JSON, null: true do
    description 'Error details'
  end
end