At the moment keys don't get camel cased (or rather, they don't use our name converter), so you need to specify the camel case version ie:
@strawberry.federation.type(keys=["my_key"])
class X:
my_key: strawberry.ID
the resulting directive should be @key(fields:"myKey")
, but now we get @key(fields:"my_key")
.
In a similar fashion when using resolve_reference
we need to snake_case the arguments, as now we'd get myKey
:
@strawberry.federation.type(keys=["my_key"])
class X:
my_key: strawberry.ID
def resolve_reference(self, myKey):
...
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