graphql-python / graphql-python/graphene-sqlalchemy

Auto generated mutations given model

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

描述

Is there anything on the roadmap to create a class similar to SQLAlchemyObjectType but for mutations that would take a model in its Input and automatically create a graphene.Mutation subclass that has all the fields in it? The reason I ask is that I am thinking about brewing my own and if its not on the roadmap I'd be happy to contribute unless there is a good reason why this is bad. I think I can create a SQLAlchemyMutationMeta and SQLAlchemyMutation class to take the model from the Input class, fetch the fields in it and pass appropriate attrs to MutationMeta.

貢獻指南

開啟貢獻指南

研究方向

先檢視現有的 SQLAlchemyObjectType 整合,以及提議的 SQLAlchemyMutationMeta 和 SQLAlchemyMutation 進入點,包括如何使用 Graphene 的 MutationMeta。當透過 Input 提供的模型能夠產生一個包含該模型欄位的 mutation 子類別,且預期行為與範圍已在 issue 討論串中達成共識時,即可視為完成。

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

評估

技術堆疊
graphql, python, sqlalchemy
領域
api, backend
Issue 類型
功能
難度
5/5
預估耗時
一週以上
活躍度
停滯
描述清晰度
基本清楚
新手友好度
25/100

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

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