Defined in: packages/db/src/types.ts:57
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>;
changes: ResolveTransactionChanges<T, TOperation>;
Defined in: packages/db/src/types.ts:74
collection: TCollection;
collection: TCollection;
Defined in: packages/db/src/types.ts:85
createdAt: Date;
createdAt: Date;
Defined in: packages/db/src/types.ts:83
globalKey: string;
globalKey: string;
Defined in: packages/db/src/types.ts:75
key: any;
key: any;
Defined in: packages/db/src/types.ts:77
metadata: unknown;
metadata: unknown;
Defined in: packages/db/src/types.ts:79
modified: T;
modified: T;
Defined in: packages/db/src/types.ts:72
mutationId: string;
mutationId: string;
Defined in: packages/db/src/types.ts:68
optimistic: boolean;
optimistic: boolean;
Defined in: packages/db/src/types.ts:82
Whether this mutation should be applied optimistically (defaults to true)
original: TOperation extends "insert" ? object : T;
original: TOperation extends "insert" ? object : T;
Defined in: packages/db/src/types.ts:70
syncMetadata: Record<string, unknown>;
syncMetadata: Record<string, unknown>;
Defined in: packages/db/src/types.ts:80
type: TOperation;
type: TOperation;
Defined in: packages/db/src/types.ts:78
updatedAt: Date;
updatedAt: Date;
Defined in: packages/db/src/types.ts:84
Your weekly dose of JavaScript news. Delivered every Monday to over 100,000 devs, for free.
Your weekly dose of JavaScript news. Delivered every Monday to over 100,000 devs, for free.
