DSL: Compose query with all nested fields included
まだ誰も着手していません。
評価
調査の方向性
ds.Content._type.fields 周辺のクエリ構築 API と、レポートで説明されている of_type の扱いを確認します。その動作を、提供されている GraphQL introspection query と比較し、再帰的な選択に上限があり、明確に定義されたスコープが存在するかを判断します。ネストされたフィールドに対応し、無制限の再帰を防ぐサポートまたはドキュメントの方針が決定されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Hello!
I'm building my query dynamically. I want to select all the nested sub fields (children, grand children etc). Is there a way to accomplish this with gql?
I'm not very fluent in graphql but I do know it's possible to build infinite nested queries, so is it even possible/easy to prevent that from happening?
I've experimented with looping through ds.Content._type.fields to somehow select each field and any children they might parent. But I find it confusing as some objects contains of_type attribute while others do not and I don't know why that is.
Might I be better off doing an introspection with
{
__schema {
types {
name
fields {
name
}
}
}
}
and determine any children by simply parsing the json data? Seems redundant.
- 主要言語
- Python
- スター
- 1.7k
- フォーク
- 195
- 平均マージ
- 14分
- マージ済み PR(30日)
- 1
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
graphql-python/gql のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
graphql-python/gql#613 · コメント 2 件 ·
-
type: feature
難易度 3/5 1〜2日 初心者へのやさしさ 42/100
graphql-python/gql#434 ·
-
type: feature
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
graphql-python/gql#373 · リアクション 1 件 ·
-
type: feature
難易度 3/5 1〜2日 初心者へのやさしさ 42/100
graphql-python/gql#355 · コメント 1 件 ·
graphql-python/gql の issue をすべて見る
似ている issue
-
area: harness bug status: needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Human-Agent-Society/reef#625 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 80/100
learningequality/kolibri#15351 · コメント 2 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
Name consistency オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
eellak/triplestore#65 · コメント 1 件 ·