[GraphQL]: add ValidationErrorType

This commit is contained in:
Paul Chavard 2019-11-07 14:57:42 +01:00
parent ad1e3c94a9
commit 3db741b6b6

View file

@ -0,0 +1,11 @@
module Types
class ValidationErrorType < Types::BaseObject
description "Éreur de validation"
field :message, String, "A description of the error", null: false
def message
object
end
end
end