The given value already exists for a field that is checked for unique values.

interface DuplicateFieldError {
    code: "DuplicateField";
    duplicateValue?: any;
    field?: string;
    message: string;
}

Hierarchy (View Summary)

Properties

code: "DuplicateField"

An error identifier.

duplicateValue?: any

The offending duplicate value.

field?: string

The name of the field.

message: string

A plain language description of the cause of an error.