This article is a follow-up to the question I posted earlier. The issue is that in neo4j 2.x docs, there is a note to the effect that constraints are recommended for creating or getting unique nodes:
As of Neo4j 2.0, unique constraints have been added. These make Neo4j enforce the uniqueness, guaranteeing that uniqueness is maintained. See the section called “Constraints” for details about this. For most cases, the unique constraints should be used rather than the features described below.
But in the Constraints
sections of the neo4j docs, there is no explanation of how to invoke the REST API to create-or-get a unique node (unique on some label/property combination).
QUESTION: in neo4j 2.0, should I use uniqueness=get_or_create
? If not, then what REST API endpoints are recommended for doing this?
uniqueness=get_or_create
parameter in the queries). – Kode Charlie