graphql-python / graphql-python/graphene-sqlalchemy

add support for strict_type connections

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

描述

Currently the strict_type=True option on the Meta class for a node is ignored and the connections end up having nullable values in the edge list. If you override the connection_class to set the strict_type on the connection, the SQLAlchemyConnectionField constructor fails because it does not unwrap the NonNull from the node before trying to set up the sort.

Ideally it should be possible to set the strict_type option on the connection via metadata on the node class.

貢獻指南

開啟貢獻指南

研究方向

先追蹤 node Meta.strict_type 設定如何傳遞到連線,以及當節點型別為 NonNull 時 SQLAlchemyConnectionField 如何建構排序。重現 issue 中描述的 nullable edge 清單行為和建構函式失敗。完成標準是節點中繼資料可以在連線上設定 strict_type,且欄位建構函式能正確處理 NonNull 節點。

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

評估

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

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

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