apoc icon indicating copy to clipboard operation
apoc copied to clipboard

Return query status for apoc.cypher.runTimeboxed

Open neo-technology-build-agent opened this issue 2 years ago • 2 comments

Issue by neo4j-apac Friday Jun 21, 2019 at 13:03 GMT Originally opened as https://github.com/neo4j-contrib/neo4j-apoc-procedures/issues/1233


Guidelines

Please note that GitHub issues are only meant for bug reports/feature requests. If you have questions on how to use APOC, please ask on the Neo4j Discussion Forum instead of creating an issue here.

Feature description (Mandatory)

apoc.cypher.runTimeboxed terminates long running query and returns nothing, which makes it confusing as client wouldn't know whether the query find nothing or it's terminated.

Considered alternatives

Return a status code together with value. The status code should indicate:

  • query is complete
  • query is terminated
  • query failed due to syntax error

How this feature can improve the project?

Remove ambiguity and improve usability.