Max finds the maximum of a sequence. If called with a field name, finds the element of that sequence with the largest value in that field. If called with a function, calls that function on every element of the sequence and returns the element which produced the largest value, ignoring any elements where the function returns null or produces a non-existence error.
cur, err := DB("examples").Table("games"). Group("player"). Max("points").Field("points"). Ungroup(). Run(session)
Max is referenced in 3 repositoriesgithub.com/dancannon/gorethink
- 1 reference in example_query_aggregation_test.go
- 2 references in btclib/rethinkDB.go
- 1 reference in rethinkdb.go