Is there a way to create an index from within Neo4jClient? I've done a raw query, but don't think that's the best option. My reason for doing so is in testing purposes where I need to drop/recreate databases to test performance of different designs.
Asked
Active
Viewed 562 times
1 Answers
4
You can do indexes like:
graphClient.Cypher
.Create("INDEX ON :Label(Property)")
.ExecuteWithoutResults();
and constraints like:
graphClient.Cypher
.CreateUniqueConstraint("identity", "property")
.ExecuteWithoutResults();
(originally from How to Create a Node with Neo4jClient in Neo4j v2?)

Community
- 1
- 1

Charlotte Skardon
- 6,220
- 2
- 31
- 42
-
Thanks! Hadn't thought about using the same Create() method. – leadZERO Feb 05 '14 at 14:29