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