Being able to request info (and root) only when needed is a nice feature, but considering we haven't exposed a type for info yet, it might be nice to all to request for context as well
So, from this:
@strawberry.federation.type(extend=True)
class Query:
@strawberry.field
def strawberry(self, info) -> str:
return info.context.strawberry_repo.get_one()
to this:
@strawberry.federation.type(extend=True)
class Query:
@strawberry.field
def strawberry(self, context: MyContextType) -> str:
return context.strawberry_repo.get_one()
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