You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 1, 2021. It is now read-only.
@@ -204,7 +203,7 @@ Each record contains one row of values returned by the Cypher query :
204
203
205
204
```
206
205
207
-
$query = "MATCH (n:Person) n, n.name as name, n.age as age";
206
+
$query = 'MATCH (n:Person) n, n.name as name, n.age as age';
208
207
$result = $client->run($query);
209
208
210
209
foreach ($result->records() as $record) {
@@ -280,9 +279,9 @@ A `Result` is a collection of `Record` objects, every **row** you see in the bro
280
279
In contrary to the previous versions of the client, there is no more automatic merging of all the records into one big record, so you will need to iterate all the records from the `Result` :
281
280
282
281
```php
283
-
$query = "MATCH (n:Address)
282
+
$query = 'MATCH (n:Address)
284
283
RETURN n.address as addr, n, collect(id(n)) as ids
285
-
LIMIT 5";
284
+
LIMIT 5';
286
285
$result = $client->run($query);
287
286
288
287
foreach ($result->records() as $record) {
@@ -349,7 +348,6 @@ The Client provides a Transaction object that ease how you would work with trans
349
348
#### Creating a Transaction
350
349
351
350
```php
352
-
353
351
$tx = $client->transaction();
354
352
```
355
353
@@ -358,7 +356,7 @@ At this stage, nothing has been sent to the server yet (the statement BEGIN has
358
356
#### Stack a query
359
357
360
358
```
361
-
$tx->push("CREATE (n:Person) RETURN id(n)");
359
+
$tx->push('CREATE (n:Person) RETURN id(n)');
362
360
```
363
361
364
362
Again, until now nothing has been sent.
@@ -368,19 +366,16 @@ Again, until now nothing has been sent.
368
366
Sometimes you want to get an immediate result of a statement inside the transaction, this can be done with the `run` method :
0 commit comments