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 @@ -494,8 +494,9 @@ $config = \GraphAware\Bolt\Configuration::newInstance()
494494 ->withCredentials('bolttest', 'L7n7SfTSj')
495495 ->withTLSMode(\GraphAware\Bolt\Configuration::TLSMODE_REQUIRED);
496496
497- $driver = \GraphAware\Bolt\GraphDatabase::driver('bolt://hodccomjfkgdenl.dbs.gdb.com:24786', $config);
498- $session = $driver->session();
497+ $client = ClientBuilder::create()
498+ ->addConnection('default', 'bolt://hodccomjfkgdenl.dbs.gdb.com:24786', config)
499+ ->build();
499500```
500501
501502#### HTTP client settings
@@ -514,8 +515,9 @@ $options = [
514515$httpClient = new Client(null, null, $options);
515516
516517$config = \GraphAware\Neo4j\Client\HttpDriver\Configuration::create($httpClient);
517- $driver = \GraphAware\Bolt\GraphDatabase::driver('bolt://hodccomjfkgdenl.dbs.gdb.com:24786', $config);
518- $session = $driver->session();
518+ $client = ClientBuilder::create()
519+ ->addConnection('default', 'http://neo4j:password@localhost:7474', config)
520+ ->build();
519521```
520522
521523### License
You can’t perform that action at this time.
0 commit comments