Shared Neo4j connection manager.
Usage:
const mgr = new Neo4jConnectionManager();await mgr.initialize({ uri: 'bolt://localhost:7687', username: 'neo4j', password: 'pw' });// All backends receive the same managerconst vectorStore = new Neo4jVectorStore(mgr);const knowledgeGraph = new Neo4jKnowledgeGraph({ connectionManager: mgr }); Copy
const mgr = new Neo4jConnectionManager();await mgr.initialize({ uri: 'bolt://localhost:7687', username: 'neo4j', password: 'pw' });// All backends receive the same managerconst vectorStore = new Neo4jVectorStore(mgr);const knowledgeGraph = new Neo4jKnowledgeGraph({ connectionManager: mgr });
Whether initialize() has been called successfully
Initialize the connection manager. Dynamically imports neo4j-driver, creates the driver, and verifies connectivity.
Create a session. Callers MUST close the session in a finally block.
'READ' for read-only transactions, 'WRITE' for write transactions.
Check Neo4j connectivity.
Gracefully close the driver and release all connection pool resources.
Shared Neo4j connection manager.
Usage: