Skip to content

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

@wopol

Description

@wopol

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions