Strawberry supports serialization for nested mutations but Strawberry-Django doesn't seem to be able do it in an atomic way
In the below example, I expect these things to happen in an atomic way so that if a credit card charge fails we do have to go back out previous transactions.
I've seen similar offers from other libraries such as Prisma.
mutation (
$createInvoice: CreateInvoiceInput!
$chargeCreditCard: ChargeCreditCardInput!
atomic: true
) {
createInvoice: invoice {
createInvoice(input: $createInvoice) {
id
}
}
chargeCreditCard: invoice {
chargeCreditCard(input: $chargeCreditCard) {
id
}
}
}
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too