| id | PendingMutation |
|---|---|
| title | PendingMutation |
Defined in: packages/db/src/types.ts:88
Represents a pending mutation within a transaction Contains information about the original and modified data, as well as metadata
T extends object = Record<string, unknown>
TOperation extends OperationType = OperationType
TCollection extends Collection<T, any, any, any, any> = Collection<T, any, any, any, any>
changes: ResolveTransactionChanges<T, TOperation>;Defined in: packages/db/src/types.ts:105
collection: TCollection;Defined in: packages/db/src/types.ts:116
createdAt: Date;Defined in: packages/db/src/types.ts:114
globalKey: string;Defined in: packages/db/src/types.ts:106
key: any;Defined in: packages/db/src/types.ts:108
metadata: unknown;Defined in: packages/db/src/types.ts:110
modified: T;Defined in: packages/db/src/types.ts:103
mutationId: string;Defined in: packages/db/src/types.ts:99
optimistic: boolean;Defined in: packages/db/src/types.ts:113
Whether this mutation should be applied optimistically (defaults to true)
original: TOperation extends "insert" ? object : T;Defined in: packages/db/src/types.ts:101
syncMetadata: Record<string, unknown>;Defined in: packages/db/src/types.ts:111
type: TOperation;Defined in: packages/db/src/types.ts:109
updatedAt: Date;Defined in: packages/db/src/types.ts:115