So at the moment our operation directives only operate on results of fields, I think we might want to allow complete customisation of a field
So we can do this now:
@strawberry.directive(
locations=[DirectiveLocation.FIELD], description="Make string uppercase"
)
def turn_uppercase(value: str):
return value.upper()
but we could allow something like this:
@strawberry.directive(
locations=[DirectiveLocation.FIELD], description="Make string uppercase"
)
def turn_uppercase(resolver: Callable[]):
value = resolver()
return value.upper()
what do you think @erikwrede @bellini666?
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