[Question] How can I customize the name of the field id is retrieve by?
まだ誰も着手していません。
評価
調査の方向性
graphql_relay/node/node.py の70行目付近と、リンクされている Relay ノードのドキュメントから始めます。id_fetcher がどのように渡され、呼び出されるかを追跡し、要求された型の uuid 属性を読み取れるかどうかを確認します。グローバル ID の構築に使用されるフィールドについて、サポートされているカスタマイズ方法を文書化するか公開できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Im trying to have relay node compose the global id in a custom way for a specific type. Instead of using the id attribute of my object I want it to use the uuid attribute. I know that i can create a custom node class to customize how the id is encoded and decoded: http://docs.graphene-python.org/en/latest/relay/nodes/
but what i want to do Is also customize the name of the field the id is gotten from ... this code suggest that it can be done by passing id_fetcher but i Dont know where or how this function is called https://github.com/graphql-python/graphql-relay-py/blob/master/graphql_relay/node/node.py#L70
- 主要言語
- Python
- スター
- 143
- フォーク
- 41
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
graphql-python/graphql-relay-py のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
graphql-python/graphql-relay-py#19 · コメント 3 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
graphql-python/graphql-relay-py#16 · コメント 9 件 · リアクション 3 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 45/100
graphql-python/graphql-relay-py#12 · コメント 4 件 · リアクション 3 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
graphql-python/graphql-relay-py#9 · リアクション 2 件 ·
graphql-python/graphql-relay-py の issue をすべて見る
似ている issue
-
agent-ready documentation needs-triage
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
-
documentation
難易度 1/5 1時間未満 初心者へのやさしさ 91/100
-
workflow-status page template still says reusable workflows are "triggered only by workflow_call:" オープン
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
-
instance instance add
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
searxng/searx-instances#939 · コメント 1 件 ·
-
area-deployment area-integrations triage:bot-seen
難易度 2/5 半日 初心者へのやさしさ 86/100