cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

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

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?

1 REPLY 1

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