fix(neo4j): use basic_auth() for neo4j 6.x driver
This commit is contained in:
parent
4712ec80ec
commit
8ee7cfb148
1 changed files with 1 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue