Open History to see the last commit
1---
2id: CurrentStateAsChangesOptions
3title: CurrentStateAsChangesOptions
4---
5
6# Interface: CurrentStateAsChangesOptions
7
8Defined in: [packages/db/src/types.ts:880](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L880)
9
10Options for getting current state as changes
11
12## Properties
13
14### limit?
15
16```ts
17optional limit: number;
18```
19
20Defined in: [packages/db/src/types.ts:884](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L884)
21
22***
23
24### optimizedOnly?
25
26```ts
27optional optimizedOnly: boolean;
28```
29
30Defined in: [packages/db/src/types.ts:885](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L885)
31
32***
33
34### orderBy?
35
36```ts
37optional orderBy: OrderBy;
38```
39
40Defined in: [packages/db/src/types.ts:883](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L883)
41
42***
43
44### where?
45
46```ts
47optional where: BasicExpression<boolean>;
48```
49
50Defined in: [packages/db/src/types.ts:882](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L882)
51
52Pre-compiled expression for filtering the current state