Execute multiple statements
It is possible to send multiple Cypher statements in the same request. The response will contain the result of each statement.
Example request
-
POST http://localhost:7474/db/neo4j/tx/commit
-
Accept: application/json;charset=UTF-8
-
Content-Type: application/json
{
"statements": [
{
"statement": "RETURN 1"
},
{
"statement": "RETURN 2"
}
]
}
Example response
-
200: OK
-
Content-Type: application/json;charset=utf-8
{
"results": [
{
"columns": ["a"],
"data": [{ "row": [1], "meta": [null] }]
},
{
"columns": ["b"],
"data": [{ "row": [2], "meta": [null] }]
}
],
"errors": []
}
Was this page helpful?