ee.Join.saveFirst

Stay organized with collections Save and categorize content based on your preferences.
Returns a join that pairs each element from the first collection with a matching element from the second collection. The first match is added to the result as an additional property.

UsageReturns
ee.Join.saveFirst(matchKey, ordering, ascending, measureKey, outer)Join
ArgumentTypeDetails
matchKeyStringThe property name used to save the match.
orderingString, default: nullThe property on which to sort the matches before selecting the first.
ascendingBoolean, default: trueWhether the ordering is ascending.
measureKeyString, default: nullAn optional property name used to save the measure of the join condition on the match.
outerBoolean, default: falseIf true, primary rows without matches will be included in the result.