Skip to content

Commit f5661e6

Browse files
Add example of the Cypher script
1 parent 485f42e commit f5661e6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

modules/ROOT/pages/tools/neo4j-admin/neo4j-admin-import.adoc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,14 @@ It currently only works for full import.
435435
You should have a Cypher script containing only `CREATE INDEX|CONSTRAINT` commands to be parsed and executed.
436436
This file uses ';' as the separator.
437437

438+
For example:
439+
440+
[source, cypher, role=nocopy]
441+
----
442+
CREATE INDEX PersonNameIndex FOR (i:Person) ON (i.name);
443+
CREATE CONSTRAINT PersonAgeConstraint FOR (c:Person) REQUIRE c.age IS :: INTEGER
444+
----
445+
438446
List of supported indexes and constraints that can be created by the import tool:
439447

440448
* RANGE

0 commit comments

Comments
 (0)