sanic-graphql
sanic-graphql copied to clipboard
Cleaning up resources in context after request
I'm using the graphql context to pass (potentially) shared resources, like database connections, to the schema resolvers. These resources eventually need to be cleaned up(i.e. closing connections).
What's the best way to do that right now?
Thanks!