Skip to main content
Module

x/neo4j_driver_lite/mod.ts>ResultObserver

Neo4j Bolt driver for JavaScript
Go to Latest
interface ResultObserver
Re-export
import { type ResultObserver } from "https://deno.land/x/neo4j_driver_lite@5.15.0/mod.ts";

Interface to observe updates on the Result which is being produced.

Properties

optional
onKeys: (keys: string[]) => void

Receive the keys present on the record whenever this information is available

optional
onNext: (record: Record<R>) => void

Receive the each record present on the @Result

optional
onCompleted: (summary: ResultSummary) => void

Called when the result is fully received

optional
onError: (error: Error) => void

Called when some error occurs during the result processing or query execution