Hi,
> We are testing Neo4J and need to support unique emails across all users. Is
> this possible with the current API?
You can add such a constraint when updating the indices:
if(index.get('email', address).hasNext()) {
throw new RuntimeException("There are two nodes that share the same email
address.");
} else {
index.put('email', address, node);
}
Marko.
http://markorodriguez.com
_______________________________________________
Neo4j mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user