2.1. Begin and commit a transaction in one request

If there is no need to keep a transaction open across multiple HTTP requests, you can begin a transaction, execute statements, and commit within a single HTTP request.

Example request

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

Example response

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