Function: isIdentityDuplicate()
isIdentityDuplicate(
err,fallback):boolean
Defined in: service-core/src/database/DatabaseErrors.ts:84
Determines whether a duplicate key error is a clash on a record's identity - its _id/primary key or its
(uid, version) pair - rather than on some other unique column.
Parameters
err
any
The duplicate key error.
fallback
boolean
The answer to give when the driver's error doesn't name the fields involved.
Returns
boolean