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.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
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?)
标签:
neo4jclient