graphql-python / graphql-python/graphene
Graphene Generic Scalar
- 主要言語
- Python
- スター
- 8.2k
- フォーク
- 818
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
I have a list returning from query like this
`[ { "name": "name1", "color":"red"},
{ "name": "name2", "color": "green"} ]`
but I want it to return like JSON e.g. ` { "name1": { "color": "red"}, "name2": { "color": "green"} } `
for now I am using grapehe Generic Scalar to transform it e.g.
but the issue with this is that in query we cannot specify fields while writing query for this, e.g. we cannot do
`{ user {
color
...
}
}`
rather we will only query
`{
user
}`
do we have any built in solutions for this in graphene ?
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
Start by reviewing Graphene's Generic Scalar behavior and the example query shapes in the issue. Compare the requested keyed object response with the need for selectable fields; done means determining whether Graphene provides a built-in schema mechanism or whether the request requires a broader design change.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- graphql, python
- 領域
- api, backend
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 20/100