sum
Sum the previously returned objects.
Synopsis
sum()
Description
The sum()
step is a map step that sums the previously returned objects in the traversal.
Examples
Get the sum of the calories for all meal items in each meal:
g.V().hasLabel('meal').local(out('includes').values('calories').sum())