Is it possible to add custom actions on unhandled errors in mutations?
Eg. following the example here, having a mutation like this
@strawberry.type
class Mutation:
@strawberry.mutation
def add_book(self, title: str, author: str, info: Info) -> Book:
session = info.context['my_database_session']
raise Exception("Can't add book")
is it possible to add an action like session.rollback()
with some kind of hook?
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