graphql-python / graphql-python/sanic-graphql
Cleaning up resources in context after request
未关闭
- 主要语言
- Python
- 星标
- 148
- 派生
- 17
- PR 合并指标
- 30 天内没有已合并 PR
描述
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!
贡献指南
这个仓库没有索引到贡献指南
调研方向
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.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- graphql, python
- 领域
- api, backend
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100