Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
japrogramer opened this issue Aug 13, 2017 · 0 comments

Comments

@japrogramer
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant