AndreiHarpa
ATApache TinkerPop
•Created by AndreiHarpa on 3/21/2023 in #questions
Subgraph query returns String instead of TinkerGraph Object in Fluent Java API
Hi guys.
I am running the following query in the console and it works fine:
g.V().has('user', 'id', 'Andrei').repeat(bothE().subgraph("subgraph").otherV().simplePath()).dedup().cap("subgraph").next();
I can then do a .traversal()
on the Thinkergraph result.
When I am using the Tinkerpop Java API, the next() step returns the following as a String: tinkergraph[vertices:11 edges:11]
How am I able to view the Edges and Vertices of my subgraph in Java? Per my understanding, a TinkerGraph should have been returned instead of String so I could run .traversal()
on it.
Thank you!12 replies