-
-
Notifications
You must be signed in to change notification settings - Fork 535
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possibility to pass context/options from query-executor to the client/request #1538
Comments
I would also like this feature. We have a few endpoints for downloading files and require the |
@mirismaili I'm with you, and I tried to find some solution. Follow my thougths:
That is why you can't use a closured variable to store current request object. Thus you can't have a single long-living instance of |
We have some special APIs with multiple token types. In GraphQL ones, we use Apollo Client and it has this feature:
And the user can send the
context
per query/mutation:But in REST ones that we use OpenAPI and this useful tool (openapi-typescript-codegen), we can't send any data from query-executor to the client or
request
:The text was updated successfully, but these errors were encountered: