Neo4jClient - Create an index from within Neo4jClient?

Is there a way to create an index from Neo4jClient? I made a raw request, but I don't think this is the best option. My reason for this is testing when I need to drop / recreate databases to test the performance of various projects.

+3
source share
1 answer

You can do indexes like:

graphClient.Cypher
    .Create("INDEX ON :Label(Property)")
    .ExecuteWithoutResults();

and type restrictions:

graphClient.Cypher
    .CreateUniqueConstraint("identity", "property")
    .ExecuteWithoutResults();

(originally from How to create a Node with Neo4jClient in Neo4j v2? )

+3
source

All Articles