Take the 2-minute tour ×

I believe internally Cypher / Gremlin translate statement into corresponding Java method calls. Is there a way to trace what method calls in run?

For example, in Hibernate, we can specify "show sql" to see generated sql statement.

[Edit] The reasonws I want to do that: 1. For Debugging purpose: To find out why the cypher / gremlin doesn't produce the expected result.

  1. For learning purpose: To find what's happening under the hood

  2. For optimization: To find out where the bottleneck is.

share|improve this question
add comment

2 Answers

In Cypher, that is planned for the coming months to add. Ultimately, yes, currently the methods used under the Hood are the Java Neo4j core API and the Traversal Framework. Mind adding a case that is causing you problem?

share|improve this answer
Added usecases. Basically debugging is the main reason. –  janetsmith Jan 6 '13 at 19:06
Have there been any updates on this front? –  zanbri Jul 17 '13 at 19:45
add comment

For Gremlin, do a .toString() at the end of your Gremlin expression to see which Pipes (http://pipes.tinkerpop.com) it ultimately compiles down to.

share|improve this answer
gremlin> g.V.toString() ==> null –  janetsmith Jan 7 '13 at 18:27
add comment

Your Answer


