fix(neo4j): use basic_auth() for neo4j 6.x driver

This commit is contained in:
Crypto Rug Munch 2026-07-08 07:12:37 +02:00
parent 4712ec80ec
commit 8ee7cfb148

View file

@ -158,7 +158,7 @@ class CatalogService:
from neo4j import GraphDatabase
cfg = self.config["neo4j"]
auth = (cfg["user"], cfg["password"]) if cfg["password"] else None
auth = neo4j.basic_auth(cfg["user"], cfg["password"]) if cfg["password"] else None
self._neo_driver = GraphDatabase.driver(cfg["uri"], auth=auth)
with self._neo_driver.session() as s:
s.run("RETURN 1").consume()