I am wondering how is possible to have a gremlin query which returns results in a nested format. Suppose there is property graph as follows:
USER
and PAGE
vertices with some properties such as AGE
for USER
vertex;
FOLLOW
edge between USER
and PAGE
;
I am looking for a single efficient query which gives all Users with age greater than 20 years and all of the followed pages by those users. I can do that using a simple loop from the application side and per each iteration use a simple traversal query. Unfortunately, such solution is not efficient for me, since it will generate lots of queries and network latency could be huge in this case.