Fork me on GitHub
#graphql
<
2022-03-01
>
Casey12:03:07

How are folks using relational DBs handling transactions in lacinia. Is it possible to define transactional semantics for multiple mutations in a query? Where would we hook into that in the lacinia api? Or is it better to define the transactional boundary at a single mutation?

gklijs17:03:47

By the GraphQL spec, it kind of needs to be a single mutation. Since when there are several mutations they need to be done in order, and kind of wait for each one to be completed before executing the next one.

hlship21:03:59

Yes, you need to think in terms of mapping the schema against your use-cases, rather than your data.