Returned when a field has an invalid value.

interface GraphQLInvalidFieldError {
    allowedValues?: any[];
    code: "InvalidField";
    field: string;
    invalidValue: any;
    [key: string]: any;
}

Hierarchy (View Summary)

Indexable

  • [key: string]: any

Properties

allowedValues?: any[]

Fixed set of allowed values for the field, if any.

code: "InvalidField"

One of the error codes that is listed on the Errors page.

field: string

Name of the field with the invalid value.

invalidValue: any

Value invalid for the field.