neo4j-labs / neo4rs

Neo4j driver for rust

Home Page:https://docs.rs/neo4rs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error for failed constraint validation

lucasfelber opened this issue · comments

It would be nice to have a dedicated error for failure when validating constraints.
Right now it is an unexpected message:

unexpected response for PULL: Ok(Failure(Failure { metadata: BoltMap { value: {BoltString { value: "message" }: String(BoltString { value: "Node(2) already exists with label Label and property property = 'prop'" }), BoltString { value: "code" }: String(BoltString { value: "Neo.ClientError.Schema.ConstraintValidationFailed" })} } }))