graphql-python / graphql-python/graphql-core-legacy

Include the ancestor field ast in the resolver's `ResolveInfo`

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

説明

Just as how `field_asts` contains the descendants to be resolved after a resolver, it would be nice if the `ResolveInfo` object also contains the field ast's ancestors that leads to the currently-resolved field.

This information would make https://github.com/graphql-python/graphql-core/issues/127 really easy to resolve.

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

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

調査の方向性

まず ResolveInfo の定義と、resolver パスにおける既存の field_asts の設定を追跡します。現在のフィールドの祖先 AST へのアクセスを追加し、その後 ResolveInfo が期待される祖先チェーンを公開していること、および関連する issue 127 のユースケースがそれを取得できることを確認します。

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

評価

技術スタック
python
領域
api
issue の種類
機能追加
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

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

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