Skip to content

Commit 987d390

Browse files
committed
updated bolt connection example
1 parent 6788d0f commit 987d390

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ composer require nyholm/psr7 nyholm/psr7-server kriswallsmith/buzz
2828
```php
2929
$client = Laudis\Neo4j\ClientBuilder::create()
3030
->addHttpConnection('backup', 'http://neo4j:password@localhost')
31-
->addBoltConnection('default', 'neo4j:password@localhost')
31+
->addBoltConnection('default', 'bolt://neo4j:password@localhost')
3232
->setDefaultConnection('default')
3333
->build();
3434
```
@@ -180,8 +180,10 @@ This library does not use any custom result classes but uses php-ds instead. The
180180
Flexibility is maintained where possible by making all parameters iterables if they are a container of sorts. This means you can pass parameters as an array, \Ds\Map or any other object which implements the \Iterator or \IteratorAggregate. These examples are all valid:
181181

182182
```php
183+
use Ds\Map;
184+
183185
// Vanilla flavour
184-
use Ds\Map;$client->run('MATCH (x {slug: $slug})', ['slug' => 'a']);
186+
$client->run('MATCH (x {slug: $slug})', ['slug' => 'a']);
185187
// php-ds implementation
186188
$client->run('MATCH (x {slug: $slug})', new Map(['slug' => 'a']));
187189
// laravel style
@@ -192,7 +194,6 @@ $client->run('MATCH (x {slug: $slug})', collect(['slug' => 'a']));
192194

193195
| **Version** | **Tested** |
194196
|-------------|-------------|
195-
| 2.3 | Yes |
196197
| 3.0 + | Yes |
197198
| 4.0 + | Yes |
198199

0 commit comments

Comments
 (0)