2.6. Commit an open transaction

Given you have an open transaction, you can send a commit request. Optionally, you can submit additional statements along with the request that will be executed before committing the transaction.

Example request

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

Example response

{
  "results" : [ {
    "columns" : [ "id(n)" ],
    "data" : [ {
      "row" : [ 5 ],
      "meta" : [ null ]
    } ]
  } ],
  "errors" : [ ]
}