Procedures called via the http endpoint that write to the database do not register as mutations in the returned stats field

http

(N) #1

When I call a user-defined procedure that mutates the graph using the transactional http endpoint, the returned "stats" field doesn't reflect any of the changes that happened. For instance, when I call a procedure that deletes nodes and relationships, I get back:

{"results":[{"columns":,"data":,"stats":{"contains_updates":false,"nodes_created":0,"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}}],"errors":}

Is there a way I can write my stored procedures so that information about changes shows up in the returned json?


(Stefan Armbruster) #2

That's expected. Procedures don't contribute to the internal counters managed by cypher. They are mostly a black box for Cypher.