Skip to content

Commit 3e449f2

Browse files
gjmwoodsdavidoliverSP2
authored andcommitted
Add multiple statements to the multiple statements example
1 parent 5581da3 commit 3e449f2

File tree

1 file changed

+15
-16
lines changed

1 file changed

+15
-16
lines changed

modules/ROOT/pages/actions/execute-multiple-statements.adoc

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ _Example request_
1717
{
1818
"statements": [
1919
{
20-
"statement": "MATCH (n) WHERE id(n) = $nodeId RETURN n",
21-
"parameters": {
22-
"nodeId": 3
23-
}
20+
"statement": "RETURN 1"
21+
},
22+
{
23+
"statement": "RETURN 2"
2424
}
2525
]
2626
}
@@ -34,18 +34,17 @@ _Example response_
3434
[source,javascript]
3535
----
3636
{
37-
"results" : [ {
38-
"columns" : [ "n" ],
39-
"data" : [ {
40-
"row" : [ { } ],
41-
"meta" : [ {
42-
"id" : 3,
43-
"type" : "node",
44-
"deleted" : false
45-
} ]
46-
} ]
47-
} ],
48-
"errors" : [ ]
37+
"results": [
38+
{
39+
"columns": ["a"],
40+
"data": [{ "row": [1], "meta": [null] }]
41+
},
42+
{
43+
"columns": ["b"],
44+
"data": [{ "row": [2], "meta": [null] }]
45+
}
46+
],
47+
"errors": []
4948
}
5049
----
5150

0 commit comments

Comments
 (0)