Migrating from Neo4jClient 3.x to 4.x
masterVersion 4.x introduces significant breaking changes. If you are upgrading from 3.x, ensure you address the following:
1. Update Connection URIs
Depending on the client type and server version, you must use the correct URI:
- GraphClient:
- For Neo4j 3.x server:
http://localhost:7474/db/data - For Neo4j 4.x server:
http://localhost:7474/
- For Neo4j 3.x server:
- BoltGraphClient:
- For both 3.x and 4.x servers:
neo4j://localhost:7687(Review Neo4j Documentation for specific configuration needs).
- For both 3.x and 4.x servers:
2. Switch to Async API
Neo4jClient 4.x is 100% async. You must replace all synchronous calls to Results or ExecuteWithoutResults with their Async equivalents.