MCPcopy Create free account
hub / github.com/TanStack/db / max

Function max

packages/db/src/query/builder/functions.ts:659–661  ·  view source on GitHub ↗
(arg: T)

Source from the content-addressed store, hash-verified

657}
658
659export function max<T extends ExpressionLike>(arg: T): AggregateReturnType<T> {
660 return new Aggregate(`max`, [toExpression(arg)]) as AggregateReturnType<T>
661}
662
663/**
664 * List of comparison function names that can be used with indexes

Callers 6

getAggregateFunctionFunction · 0.50
group-by.test-d.tsFile · 0.50
createGroupByTestsFunction · 0.50
createOrderByTestsFunction · 0.50
functions.test.tsFile · 0.50

Calls 1

toExpressionFunction · 0.85

Tested by 2

createGroupByTestsFunction · 0.40
createOrderByTestsFunction · 0.40