Open History to see the last commit
1---
2id: OperationConfig
3title: OperationConfig
4---
5
6# Interface: OperationConfig
7
8Defined in: [packages/db/src/types.ts:433](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L433)
9
10## Properties
11
12### metadata?
13
14```ts
15optional metadata: Record<string, unknown>;
16```
17
18Defined in: [packages/db/src/types.ts:434](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L434)
19
20***
21
22### optimistic?
23
24```ts
25optional optimistic: boolean;
26```
27
28Defined in: [packages/db/src/types.ts:436](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L436)
29
30Whether to apply optimistic updates immediately. Defaults to true.