DotNet4Neo4j / Neo4jClient

.NET client binding for Neo4j
https://www.nuget.org/packages/Neo4jClient
Microsoft Public License
431 stars 146 forks source link

Database commands above v4 #462

Closed richardkarlsenft closed 1 year ago

richardkarlsenft commented 1 year ago

How to use database commands in version above v4?

In earlier version it was possible to e.g. get database indexes and constraints;

.Call("db.indexes()")
.Call("db.constraints()")

In newer version of neo4j these calls was deprecated and replaced with the SHOW command. But the SHOW command was removed for the client in version v4+?

Is there no way to execute these commands like these to neo4j using the current client?

cskardon commented 1 year ago

This is a VERY good catch - SHOW does actually exist in the client - it's just unusable.

So... let me fix that!

cskardon commented 1 year ago

Version 5.1.6 of the client should have all this in!

cskardon commented 1 year ago

Example use:

var query = client.Cypher
    .Show("databases")
    .Yield("name")
    .Return (name => name. As<string>());
richardkarlsenft commented 1 year ago

Thank you for the quick response and fix! Works as expected 👍