# CurrentStateAsChangesOptions

<!-- DO NOT EDIT: this page is autogenerated from the type comments -->

Defined in: [packages/db/src/types.ts:1332](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L1332)

Options for getting current state as changes

## Properties

### limit?

```ts
optional limit?: number;
```

Defined in: [packages/db/src/types.ts:1336](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L1336)

***

### optimizedOnly?

```ts
optional optimizedOnly?: boolean;
```

Defined in: [packages/db/src/types.ts:1337](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L1337)

***

### orderBy?

```ts
optional orderBy?: OrderBy;
```

Defined in: [packages/db/src/types.ts:1335](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L1335)

***

### where?

```ts
optional where?: BasicExpression<boolean>;
```

Defined in: [packages/db/src/types.ts:1334](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L1334)

Pre-compiled expression for filtering the current state
