Returned when a field value conflicts with an existing value causing a duplicate.

interface GraphQLDuplicateFieldError {
    code: "DuplicateField";
    duplicateValue: any;
    field: string;
    [key: string]: any;
}

Hierarchy (View Summary)

Indexable

  • [key: string]: any

Properties

code: "DuplicateField"

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

duplicateValue: any

Conflicting duplicate value.

field: string

Name of the conflicting field.