.Debug() method returns incorrect query #708
banchmaxedgedenergy
started this conversation in
General
Replies: 1 comment 1 reply
-
Seems like an omission. Handling a GroovyGremlinQuery there is easy. Feeling brave enough to craft a pull request? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone,
Here is the simple query I built:
var result =_g.V('someId').Out<Makes>().OfType<ProductModel>().Debug();
The result is:
g.V(_a).out(_b).hasLabel(_c)
I tried to debug, and figured that internally when Debug() method is executed, the serializer returns an object with Bindings collection where all those _a and _b and _c are located:
![image](https://user-images.githubusercontent.com/101670266/180052847-6191918a-9a04-4011-aa24-732781e0f135.png)
Also I look at what is used in Environment.Debugger and figured that default debugger (which is GroovyGremlinQueryDebugger) supports only BytecodeGremlinQuery types, when TryToString() method is being called it expects to receive BytecodeGremlinQuery, however in my case the type is GroovyGremlinQuery:
![image](https://user-images.githubusercontent.com/101670266/180053735-bde1544b-0905-4ca3-a4e9-196aa8eedf2a.png)
And that's why the result is not full.
Maybe my environment is setup incorrectly, or this part is not implemented yet...
Please advise.
Thank you!
P.S. My problem is I'd like to see the real query that is being sent to the server.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions