Skip to content
This repository was archived by the owner on Jan 27, 2026. It is now read-only.
This repository was archived by the owner on Jan 27, 2026. It is now read-only.

unique constraint violated error not returned on save #49

@samlotti

Description

@samlotti

error is nill on result of save when 409 returned from arangodb

Case needed in
func (col *Collection) Save(doc interface{}) error {
...
case 409:
return errors.New( "unique constraint violated" )

To reproduce, add a unique index on a collection.
Call to add a document multiple times, the error is returned by Arango but not by the save function.

I believe this should be added to other functions as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions