Skip to main content
All CollectionsData AnalysisGremlin training
Gremlin Training 14: Basic aggregation steps - min()
Gremlin Training 14: Basic aggregation steps - min()

Learn to use the min()-step to find the lowest value from a collection of numerical values in your fields.

Kristine Marhilevica avatar
Written by Kristine Marhilevica
Updated over a week ago

The min()-step works on a collection of numerical values.

The following query returns the lowest value among the total_direct_cost fields on applications.

g.V().
hasLabel('Application').
values('total_direct_cost').
min()

min()-step

Did this answer your question?