I would like a node to be unique based on two constraints:
1. A property set by me
2. The index as set by neo4j at the creation of the node
This is what I've tried so far:
CREATE CONSTRAINT transaction_constraint IF NOT EXISTS
FOR (tx: Transaction)
REQUIRE(tx.`Transaction Hash`, id(tx)) IS UNIQUE
but this is the error I get:
py2neo.errors.ClientError: [Statement.SyntaxError] Invalid input '(': expected "." (line 4, column 70 (offset: 221))
"REQUIRE(tx.`Transaction Hash`, id(tx)) IS UNIQUE"
^
I would like to avoid having an extra id that I manually increment to keep things neat if possible.