Open History to see the last commit
1---
2id: eq
3title: eq
4---
5
6<!-- DO NOT EDIT: this page is autogenerated from the type comments -->
7
8# Function: eq()
9
10## Call Signature
11
12```ts
13function eq<T>(left, right): BasicExpression<boolean>
14```
15
16Defined in: [packages/db/src/query/builder/functions.ts:11](https://github.com/TanStack/db/blob/main/packages/db/src/query/builder/functions.ts#L11)
17
18### Type Parameters
19
20• **T**
21
22### Parameters
23
24#### left
25
26`RefProxy`\<`T`\>
27
28#### right
29
30`T` | `RefProxy`\<`T`\> | `BasicExpression`\<`T`\>
31
32### Returns
33
34`BasicExpression`\<`boolean`\>
35
36## Call Signature
37
38```ts
39function eq<T>(left, right): BasicExpression<boolean>
40```
41
42Defined in: [packages/db/src/query/builder/functions.ts:15](https://github.com/TanStack/db/blob/main/packages/db/src/query/builder/functions.ts#L15)
43
44### Type Parameters
45
46• **T** *extends* `string` \| `number` \| `boolean`
47
48### Parameters
49
50#### left
51
52`T` | `BasicExpression`\<`T`\>
53
54#### right
55
56`T` | `BasicExpression`\<`T`\>
57
58### Returns
59
60`BasicExpression`\<`boolean`\>
61
62## Call Signature
63
64```ts
65function eq<T>(left, right): BasicExpression<boolean>
66```
67
68Defined in: [packages/db/src/query/builder/functions.ts:19](https://github.com/TanStack/db/blob/main/packages/db/src/query/builder/functions.ts#L19)
69
70### Type Parameters
71
72• **T**
73
74### Parameters
75
76#### left
77
78`Aggregate`\<`T`\>
79
80#### right
81
82`any`
83
84### Returns
85
86`BasicExpression`\<`boolean`\>