Hey there, folks, loving the library so far!
We use a typed object as dependency context with FastAPI which is inheriting BaseContext
as per the docs.
One small thing that we ran into is that our Context class has a request
attribute which happened to be overridden by the default request
: https://github.com/strawberry-graphql/strawberry/blob/main/strawberry/fastapi/router.py#L70
I found this issue #1493 which solves the problem for when the context_getter
is a dict
.
But after issue #1541 when this BaseContext
was added, it was implemented with a different behavior from the dict
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