You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Intended outcome:
I'm trying to have an async context for SchemaLink.
But in "src/link/schema/index.ts" at line 51 there is this.context(operation) instead of await this.context(operation).
This is a different behavior for ApolloClient than for ApolloServer, which breaks the app in my case.
Actual outcome:
context does not wait until promise is resolved, and therefore the injected context in resolvers is wrong.
How to reproduce the issue:
Make the context return a promise instead of a sync function
Versions
Latest version
The text was updated successfully, but these errors were encountered:
Intended outcome:
I'm trying to have an async context for SchemaLink.
But in "src/link/schema/index.ts" at line 51 there is
this.context(operation)
instead ofawait this.context(operation)
.This is a different behavior for ApolloClient than for ApolloServer, which breaks the app in my case.
Actual outcome:
context does not wait until promise is resolved, and therefore the injected context in resolvers is wrong.
How to reproduce the issue:
Make the context return a promise instead of a sync function
Versions
Latest version
The text was updated successfully, but these errors were encountered: