apache / hop

Hop Orchestration Platform
https://hop.apache.org/
Apache License 2.0
979 stars 350 forks source link

[Feature Request]: Neo4j -- Create Node key constraints #2106

Open aritan7 opened 1 year ago

aritan7 commented 1 year ago

Apache Hop version?

2.2

Java version?

OpenJDK Runtime Environment (build 11.0.17+8)

Operating system

Linux

What happened?

Neo4j Version: 4.4.15

Please add an option to create a node key constraint for Neo4j.

Currently, the only way to create constraints via the "Neo4j Constraint" action is as follows: CREATE CONSTRAINT company_id IF NOT EXISTS FOR (n:Company) REQUIRE n.id IS UNIQUE

For node-key constraints (https://neo4j.com/docs/cypher-manual/4.4/constraints/examples/#administration-constraints-node-key), the syntax is slightly different: CREATE CONSTRAINT company_id_name FOR (n:Company) REQUIRE (n.id, n.name) IS NODE KEY

Issue Priority

Priority: 2

Issue Component

Component: Graph

hansva commented 1 year ago

.set-labels new feature

github-actions[bot] commented 1 year ago

Label new cannot be managed because it does not exist in the repo. Please check your spelling.

hansva commented 1 year ago

moved to new feature, sounds like a great addition

Mattang-John commented 1 year ago

Before making this the standard, make sure it works with community edition as well as enterprise. Some NODE KEY functionality only works in Enterprise Neo4j.