This repository was archived by the owner on Dec 1, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -489,8 +489,9 @@ $config = \GraphAware\Bolt\Configuration::newInstance()
489489 ->withCredentials('bolttest', 'L7n7SfTSj')
490490 ->withTLSMode(\GraphAware\Bolt\Configuration::TLSMODE_REQUIRED);
491491
492- $driver = \GraphAware\Bolt\GraphDatabase::driver('bolt://hodccomjfkgdenl.dbs.gdb.com:24786', $config);
493- $session = $driver->session();
492+ $client = ClientBuilder::create()
493+ ->addConnection('default', 'bolt://hodccomjfkgdenl.dbs.gdb.com:24786', config)
494+ ->build();
494495```
495496
496497#### HTTP client settings
@@ -509,8 +510,9 @@ $options = [
509510$httpClient = new Client(null, null, $options);
510511
511512$config = \GraphAware\Neo4j\Client\HttpDriver\Configuration::create($httpClient);
512- $driver = \GraphAware\Bolt\GraphDatabase::driver('bolt://hodccomjfkgdenl.dbs.gdb.com:24786', $config);
513- $session = $driver->session();
513+ $client = ClientBuilder::create()
514+ ->addConnection('default', 'http://neo4j:password@localhost:7474', config)
515+ ->build();
514516```
515517
516518### License
You can’t perform that action at this time.
0 commit comments