Skip to content

Commit f04238b

Browse files
authored
Merge pull request #37588 from marko-bekhta/doc/update-cypher-script
Update the import.cypher script to use newer syntax
2 parents c93b469 + f905668 commit f04238b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/main/asciidoc/native-reference.adoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -846,8 +846,8 @@ we need the following cypher script which will import the data within the CSV fi
846846

847847
[source,cypher]
848848
----
849-
CREATE CONSTRAINT unique_vm_id ON (v:VM) ASSERT v.vmId IS UNIQUE;
850-
CREATE CONSTRAINT unique_method_id ON (m:Method) ASSERT m.methodId IS UNIQUE;
849+
CREATE CONSTRAINT unique_vm_id FOR (v:VM) REQUIRE v.vmId IS UNIQUE;
850+
CREATE CONSTRAINT unique_method_id FOR (m:Method) REQUIRE m.methodId IS UNIQUE;
851851
852852
LOAD CSV WITH HEADERS FROM 'file:///reports/call_tree_vm.csv' AS row
853853
MERGE (v:VM {vmId: row.Id, name: row.Name})

0 commit comments

Comments
 (0)