Confused about how to do a transaction #3618
-
|
Wanted to figure out how to do a transaction across several collections optimistically. Been working off https://github.com/electric-sql/electric/tree/main/examples/tanstack-db-web-starter, it makes sense for 1-1 crud operations but I have situations where I need to create an object optimistically that depends on another object for its id (a transaction) My schema design is that I have So my operation is essentially to create a Thank you so much beforehand. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Check out the mutations doc — https://tanstack.com/db/latest/docs/guides/mutations Actions + manual transactions let you create cross-collection transactions. |
Beta Was this translation helpful? Give feedback.
Check out the mutations doc — https://tanstack.com/db/latest/docs/guides/mutations
Actions + manual transactions let you create cross-collection transactions.