Skip to content
Source
Sign inSign up
TanStack/db
Open History to see the last commit

sum.md

24 lines487 Bytes

1---
2id: sum
3title: sum
4---
5​
6<!-- DO NOT EDIT: this page is autogenerated from the type comments -->
7​
8# Function: sum()
9​
10```ts
11function sum(arg): Aggregate<number>
12```
13​
14Defined in: [packages/db/src/query/builder/functions.ts:239](https://github.com/TanStack/db/blob/main/packages/db/src/query/builder/functions.ts#L239)
15​
16## Parameters
17​
18### arg
19​
20`number` | `BasicExpression`\<`number`\> | `RefProxy`\<`number`\> | `RefProxy`\<`undefined` \| `number`\>
21​
22## Returns
23​
24`Aggregate`\<`number`\>