graphql-python / graphql-python/graphql-relay-py

[Question] How can I customize the name of the field id is retrieve by?

Open
#11 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
144
Forks
41
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.