Class Neo4jCypherRunner

Helper for running parameterized Cypher queries.

Constructors

Methods

  • Execute a read-only Cypher query with automatic session management. Returns result records mapped to plain objects.

    Type Parameters

    • T = Record<string, unknown>

    Parameters

    • cypher: string
    • params: Record<string, unknown> = {}

    Returns Promise<T[]>

  • Execute a write Cypher query with automatic session management. Returns result records mapped to plain objects.

    Type Parameters

    • T = Record<string, unknown>

    Parameters

    • cypher: string
    • params: Record<string, unknown> = {}

    Returns Promise<T[]>

  • Execute multiple write statements in a single transaction.

    Parameters

    • statements: {
          cypher: string;
          params?: Record<string, unknown>;
      }[]

    Returns Promise<void>