[Question] How can I customize the name of the field id is retrieve by?
还没有人认领这个 Issue。
评估
调研方向
从 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
- 派生
- 42
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
graphql-python/graphql-relay-py 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 35/100
-
难度 5/5 一周以上 新手友好度 35/100
graphql-python/graphql-relay-py#19 · 3 条评论 ·
-
难度 5/5 一周以上 新手友好度 35/100
graphql-python/graphql-relay-py#16 · 9 条评论 · 3 个 reaction ·
-
has_previous_page and has_next_page always False while navigating可能已有人在做 @sciyoshi 于 3248 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 45/100
graphql-python/graphql-relay-py#12 · 4 条评论 · 3 个 reaction ·
-
难度 2/5 1-3 小时 新手友好度 35/100
graphql-python/graphql-relay-py#9 · 2 个 reaction ·
查看 graphql-python/graphql-relay-py 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 62/100
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
WingedGuardian/GENesis-AGI#3375 ·
维护者通常 1 天内回复
-
curriculum documentation quality
难度 2/5 1-3 小时 新手友好度 75/100
githubnext/gh-aw-workshop#4601 ·
维护者通常 1 天内回复
-
approved Good First Issue scope: docs
难度 1/5 1 小时以内 新手友好度 85/100
hiero-ledger/hiero-sdk-python#2730 · 3 条评论 ·
维护者通常 1 天内回复