go-driver icon indicating copy to clipboard operation
go-driver copied to clipboard

Conflict error should expose the name of a field that violates a unique constraint.

Open wopol opened this issue 1 year ago • 0 comments

Currently, the package exposes the driver.IsConflict function, which allows us to check whether conflict occurs, but the only way to check which field caused that error is to parse the error message. It is not good and error-prone. Is it possible to add explicitly the conflicti_keys to the ArangoError struct? Or maybe you could propose another solution that allows clients to check field names.

wopol avatar Feb 26 '24 08:02 wopol