2.4. Execute statements in an open transaction

Given that you have an open transaction, you can make a number of requests, each of which executes additional statements, and keep the transaction open by resetting the transaction timeout.

Example request

{
  "statements" : [ {
    "statement" : "CREATE (n) RETURN n"
  } ]
}

Example response

{
  "commit" : "http://localhost:7474/db/data/transaction/12/commit",
  "results" : [ {
    "columns" : [ "n" ],
    "data" : [ {
      "row" : [ { } ],
      "meta" : [ {
        "id" : 11,
        "type" : "node",
        "deleted" : false
      } ]
    } ]
  } ],
  "transaction" : {
    "expires" : "Fri, 07 Jun 2019 14:33:31 +0000"
  },
  "errors" : [ ]
}