Neo4jClient Documentation

repository·master·Indexed 19 days ago

https://github.com/dotnet4neo4j/neo4jclient

A .NET client for Neo4j that supports Cypher queries via fluent interfaces and indexing operations. Version 4.x features an exclusively async API, updated dependency versions for Newtonsoft.Json and Neo4j.Driver.Signed, and removes support for MSDTC and Neo4j versions 3.4 or lower.

Tokens
403
Snippets
1
Records
3
Agent score
15%

What's inside Neo4jClient

  1. Migrating from Neo4jClient 3.x to 4.x

    master

    Version 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/
    • BoltGraphClient:
      • For both 3.x and 4.x servers: neo4j://localhost:7687 (Review Neo4j Documentation for specific configuration needs).

    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.

  2. Breaking Changes in Neo4jClient 4.x

    master

    When using Neo4jClient 4.x, be aware of these fundamental changes:

    • Async Only: The library has transitioned to an exclusively async API.
    • Transaction Management: Transactions no longer use the TransactionScope class. Consequently, MSDTC (Microsoft Distributed Transaction Coordinator) is no longer supported.
    • Neo4j Version Support: GraphClient and BoltGraphClient no longer support Neo4j 3.4 or lower. The underlying Neo4j.Driver requires Neo4j 3.5+.
    • Dependency Updates:
      • Newtonsoft.Json (Json.NET) has been updated to 12.0.3.
      • Neo4j.Driver.Signed has been updated to 4.1.1.