# getWhereExpression

# Function: getWhereExpression()

```ts
function getWhereExpression(where): BasicExpression<boolean>;
```

Defined in: [packages/db/src/query/ir.ts:176](https://github.com/TanStack/db/blob/main/packages/db/src/query/ir.ts#L176)

Extract the expression from a Where clause

## Parameters

### where

[`Where`](../type-aliases/Where.md)

## Returns

[`BasicExpression`](../type-aliases/BasicExpression.md)\<`boolean`\>
