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

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

Properties

code: "DuplicateField"
duplicateValue?: any

The offending duplicate value.

field?: string

The name of the field.

message: string