This has been requested on discord, the initial API we discussed could look something like this:
@strawberry.type(auto_camel_case=False)
class X:
field_abc: int
this would generate the following type:
type X {
field_abc: Int!
}
I think it should be easy to implement by adding a new attribute to TypeDefinition and using that inside our custom NameConverter.
The only issue I see is that this is yet another param in strawberry.type
and it looks a bit different from how we define auto camel casing globally.
Maybe another approach could be this:
@disable_camel_casing
@strawberry.type
class X:
field_abc: int
but I'm not 100% sure, open to suggestions π
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too