TanStackT
TanStack3w ago
3 replies
ordinary-sapphire

How do I use a query collection with manual transactions?

Imagine a ToDo app where you can add a bunch of todos (in a transaction) and the user has to click a “save changes” button.

Manual transactions seem to require a mutationFn but I just want them to trigger the query collection’s onInsert/onUpdate/onDelete.
Was this page helpful?