.outE().inV() --> .out().inE().outV() --> .in().outE().hasLabel('...').inV --> .out('...').inE().hasLabel('...').outV() --> .in('...').not(filter(...)) --> .not(...)
Make sure to not do these changes if the query contains .path(), because then the results will be different.
Also, note that .bothE().bothV() and .both() are not equivalent
This should probably be an option which can be toggled in the advanced options. I can imagine it being annoying to get the query rewritten when you just want to format it.
.outE().inV()
-->.out()
.inE().outV()
-->.in()
.outE().hasLabel('...').inV
-->.out('...')
.inE().hasLabel('...').outV()
-->.in('...')
.not(filter(...))
-->.not(...)
Make sure to not do these changes if the query contains .path(), because then the results will be different. Also, note that.bothE().bothV()
and.both()
are not equivalentThis should probably be an option which can be toggled in the advanced options. I can imagine it being annoying to get the query rewritten when you just want to format it.