# max

# Function: max()

```ts
function max<T>(arg): AggregateReturnType<T>;
```

Defined in: [packages/db/src/query/builder/functions.ts:382](https://github.com/TanStack/db/blob/main/packages/db/src/query/builder/functions.ts#L382)

## Type Parameters

### T

`T` *extends* `ExpressionLike`

## Parameters

### arg

`T`

## Returns

`AggregateReturnType`\<`T`\>
