I have a graph in janusgrah that has two point,
order:id,channel,order_time
shipments:id,channel,ship_time
how can I realize sql like this using Gremlin grammar?
select channel,avg (ship_time - order_time) from order join shipments
using(id) group by channel
I try to write as
g.V().has('Type',
textContains('order').as('a').out('shipment').as('b').math('a'-
'b').by('???').groupCount().by('channel')
and I don't know how to write the parameter in math().by("???") when the column name is different.