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:952](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L952)
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:956](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L956)
21
22***
23
24### optimizedOnly?
25
26```ts
27optional optimizedOnly: boolean;
28```
29
30Defined in: [packages/db/src/types.ts:957](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L957)
31
32***
33
34### orderBy?
35
36```ts
37optional orderBy: OrderBy;
38```
39
40Defined in: [packages/db/src/types.ts:955](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L955)
41
42***
43
44### where?
45
46```ts
47optional where: BasicExpression<boolean>;
48```
49
50Defined in: [packages/db/src/types.ts:954](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L954)
51
52Pre-compiled expression for filtering the current state