-
-
Notifications
You must be signed in to change notification settings - Fork 115
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
Possibility to rename pk to id or something else #121
Comments
3 tasks
11 tasks
an example of this: @strawberry.type
class Query:
foo = strawberry.django.field() I wonder how we can customise the name of the argument, we could that on the type, or on the field. I'm not sure what the best option is |
@patrick91 maybe something similar to what I did on CUD mutations? Add a field to define the argument name to be used in this case, which users can customer on a per-field settings, and also a django setting to define the global default one, defaulting to |
11 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently, when a filter is created for a single object, "pk" is used as the ID name. There is no possibility to specify an alternative name.
Feature Request Type
Description
Ability to set custom name for "pk".
Upvote & Fund
The text was updated successfully, but these errors were encountered: