Include query statistics
By setting includeStats
to true
for a statement, query statistics will be returned for it.
Example request
-
POST http://localhost:7474/db/neo4j/tx/commit
-
Accept: application/json;charset=UTF-8
-
Content-Type: application/json
{
"statements": [
{
"statement": "CREATE (n) RETURN id(n)",
"includeStats": true
}
]
}
Example response
-
200: OK
-
Content-Type: application/json;charset=utf-8
{
"results" : [ {
"columns" : [ "id(n)" ],
"data" : [ {
"row" : [ 5 ],
"meta" : [ null ]
} ],
"stats" : {
"contains_updates" : true,
"nodes_created" : 1,
"nodes_deleted" : 0,
"properties_set" : 0,
"relationships_created" : 0,
"relationship_deleted" : 0,
"labels_added" : 0,
"labels_removed" : 0,
"indexes_added" : 0,
"indexes_removed" : 0,
"constraints_added" : 0,
"constraints_removed" : 0,
"contains_system_updates" : false,
"system_updates" : 0
}
} ],
"errors" : [ ]
}
Was this page helpful?