graphql-python / graphql-python/graphene-sqlalchemy

Default resolver on Many-To-One and One-To-One relationships is not respected

未關閉
#309 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Python
星號
985
分支
223
PR 合併指標
30 天內沒有已合併 PR

描述

SQLAlchemy-Graphene respects a custom resolver if it's set, but not a custom default resolver for many-to-one and one-to-one relationships.

The issue lies here:
https://github.com/graphql-python/graphene-sqlalchemy/blob/20ecaeadf2144b88555a3daf1a04e31b7f2ff95a/graphene_sqlalchemy/converter.py#L80

It should be checked if there is a custom default resolver and that should be used if it's the case.

貢獻指南

開啟貢獻指南

研究方向

Start in graphene_sqlalchemy/converter.py around line 80, where the issue identifies the resolver handling. Trace the many-to-one and one-to-one relationship conversion and verify completion by confirming custom default resolvers are used while explicit custom resolvers remain respected.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
graphql, python, sqlalchemy
領域
api, backend
Issue 類型
缺陷
難度
2/5
預估耗時
1-3 小時
活躍度
停滯
描述清晰度
描述清楚
新手友好度
55/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。