type MutationFn<T> = (params) => Promise<any>;Defined in: packages/db/src/types.ts:135
Persists an optimistic transaction. Do not start or await collection or live-query preloads here. Sync commits queue behind this function, so waiting for preload work that needs one of those commits can deadlock the mutation. Use the collection adapter's mutation acknowledgement helper instead.
T extends object = Record<string, unknown>
Promise<any>