graphql-python / graphql-python/graphene

Is it possible to pass an array of inputs to a relay.clientIDMutation?

オープン
#1,232 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
✨ enhancement
主要言語
Python
スター
8.2k
フォーク
818
PR マージ指標
30日以内にマージされた PR はありません

説明

I want to update a django model that has a one to many relation with the model that has the mutation. I know this is possible with queries and also with `graphene.Mutation` mutations using `class Arguments`.

i am currently using `graphene.relay.ClientIDMutation` and I would like to know if its possible to have a dynamic sized class of inputs as an argument for the mutation.

here is a representation of inputs(array) I want to work with,

```
mutation{
addGamePrequels(input:{
gameThatNeedsPrequels: "game2"
gamearray:[
{
name:"test1",
price:"1",
datereleased:"2020-07-17",
},
{
name:"test2",
price:"1",
datereleased:"2020-07-17",
},
{
name:"test3",
price:"1",
datereleased:"2020-07-17",
},
]
}

){
game{
name
collection{
collectionname
}
}
}
}
```

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

graphene.relay.ClientIDMutation と、issue に示されている動的な gamearray 入力の形状から始めてください。ClientIDMutation が入力をどのように定義して受け入れるかを確認し、その動作を class Arguments を使用する graphene.Mutation と比較してください。サポートされるアプローチまたは制限が明確に文書化された時点で作業は完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
graphql, python
領域
api, backend
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。