The Neo4j adapter
The Neo4j adapter, imported for Kineo and KineoKit from kineo/adapters/neo4j and kineokit/adapters/neo4j respectively, allows you to interact with your Neo4j database with Kineo.
Usage
To use the Neo4j adapter, you must first install neo4j-driver.
- npm
- yarn
- pnpm
- bun
npm install neo4j-driver
yarn add neo4j-driver
pnpm add neo4j-driver
bun add neo4j-driver
At runtime
You can import it like this:
import { neo4jAdapter } from "kineo/adapters/neo4j";
and pass it an object, containing either a Neo4j driver and optionally a session, or a URL and authentication options.
At migration time
You can import it like this:
import { neo4jAdapter } from "kineokit/adapters/neo4j";
and pass it a Kineo client using a Neo4j adapter, a runtime Neo4j adapter or the same options you pass the runtime adapter.