Skip to Content

UserError

Error information returned by mutations

Type Definition

type UserError { field: [String] message: String! code: String }

Fields

FieldTypeDescription
field[String]Path to the input field that caused the error
messageString!The error message
codeStringThe error code

Relationships

UserError is a standalone error type used by mutations to communicate validation errors and other error conditions to clients. The field array can reference nested input object paths to pinpoint exactly where an error occurred in the input data structure.

Example

{ field message code }

Implements

This type does not implement any interfaces.

  • String