DB Docs
API Reference
- Core API Reference
- Collection
- createCollection
- liveQueryCollectionOptions
- createLiveQueryCollection
- createOptimisticAction
- createTransaction
- Electric DB Collection
- electricCollectionOptions
- Query DB Collection
- queryCollectionOptions
- RxDB DB Collection
- rxdbCollectionOptions
- PowerSync Collection
- powerSyncCollectionOptions
- createIndexedDB
- indexedDBCollectionOptions
- React Hooks
- useLiveQuery
AI/LLM: This documentation page is available in plain markdown format at/db/latest/docs/reference/type-aliases/InsertMutationFn.md
InsertMutationFn
ts
type InsertMutationFn<T, TKey, TUtils, TReturn> = (params) => Promise<TReturn>;Defined in: packages/db/src/types.ts:683
Type Parameters#
T#
T extends object = Record<string, unknown>
TKey#
TKey extends string | number = string | number
TUtils#
TUtils extends UtilsRecord = UtilsRecord
TReturn#
TReturn = any
DEPRECATED: Return values are kept for backward compatibility and will be removed in v1.0.
Parameters#
params#
InsertMutationFnParams<T, TKey, TUtils>
Returns#
Promise<TReturn>