graphql-python / graphql-python/sanic-graphql
Cleaning up resources in context after request
- Langage dominant
- Python
- Étoiles
- 148
- Forks
- 17
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
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!
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
Start by tracing how the GraphQL context is created and passed to schema resolvers in the project. Determine where request completion can be observed and define a cleanup mechanism for shared resources such as database connections; the issue names no files or tests, so the expected behavior needs clarification before implementation.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- graphql, python
- Domaine
- api, backend
- Type d'issue
- Fonctionnalité
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 25/100