TanStack
DB v0v0
Framework
StartRouter
Data & State
QueryDBStoreAI
UI & UX
TableFormHotkeysMarkdownHighlight
Performance
VirtualPacer
Tooling
DevtoolsConfigCLIIntent
Blog
Blog & Release Notes
About
YouTubeThe official TanStack channel.WorkshopsLive sessions from the maintainers.Release NotesThe latest releases and changelog.
Channels
DiscordReal-time community support.GitHubSource, issues, discussions, and releases.
People & Work
MaintainersMeet the people maintaining the stack.ContributorsCore, library, and community contributors.ShowcaseTeams building with TanStack.
Tools
BuilderAlphaGenerate TanStack app starters.StatsNPM and ecosystem usage data.
Merch
View all
Support
Support OverviewFind the right support path.PartnersCompanies supporting TanStack.OSS SponsorsSponsors keeping TanStack open source.Enterprise SupportPrivate consulting and expert support.ContactGet in touch with the TanStack team.
About
EthosHow we approach open source.TenetsThe values that shape TanStack libraries.Design SystemLogos, tokens, and UI components.
Partners

Sponsorships, placements, and partner pages.

Work with
TanStack
Partnership Inquiry
Log In
Log In
Blog & Release Notes
About
YouTubeThe official TanStack channel.WorkshopsLive sessions from the maintainers.Release NotesThe latest releases and changelog.
Channels
DiscordReal-time community support.GitHubSource, issues, discussions, and releases.
People & Work
MaintainersMeet the people maintaining the stack.ContributorsCore, library, and community contributors.ShowcaseTeams building with TanStack.
Tools
BuilderAlphaGenerate TanStack app starters.StatsNPM and ecosystem usage data.
View all
Support
Support OverviewFind the right support path.PartnersCompanies supporting TanStack.OSS SponsorsSponsors keeping TanStack open source.Enterprise SupportPrivate consulting and expert support.ContactGet in touch with the TanStack team.
About
EthosHow we approach open source.TenetsThe values that shape TanStack libraries.Design SystemLogos, tokens, and UI components.
Partnership Inquiry
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
HomeGet StartedGuidesAPI
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/MutationFnParams.md

MutationFnParams

ts
type MutationFnParams<T> = object;

Defined in: packages/db/src/types.ts:133

Configuration options for creating a new transaction

Type Parameters#

T#

T extends object = Record<string, unknown>

Properties#

transaction#

ts
transaction: TransactionWithMutations<T>;

Defined in: packages/db/src/types.ts:134

Edit on GitHub
NextCore API Reference

On this page

  • Type Parameters
  • T
  • Properties
  • transaction
Blog
@Tan_Stack on X.com
@TannerLinsley on X.com
GitHub
YouTube
Ethos
Tenets
Privacy Policy
Terms of Service
© 2026 TanStack LLC
PartnersBecome a Partner
Gold
CloudflareCloudflare
RailwayRailway
LovableLovable
NetlifyNetlify
CodeRabbitCodeRabbit
Silver
OpenRouterOpenRouter
WorkOSWorkOS
SerpApiSerpApi
AG GridAG Grid
ClerkClerk
Bronze
ElectricElectric
PrismaPrisma
SentrySentry
UnkeyUnkey
Latest Posts