-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Property 'connection' does not exist on type 'ExpressContext' #3208
Comments
I believe this was meant to be be fixed via #2959. Is it possible you have multiple versions of @stefanholzapfel @Siyfion Did you find that the typing problem with the |
@dauledk Also, whether or not it's the exact steps in the guide, including a runnable reproduction would be helpful. |
Running |
@abernix @dauledk Just upgraded from 2.8.1 to 2.9.0 without any problems. Using context like this:
ExpressContext still contains the connection property:
|
After closing VS code and opening again, the error is gone. Thanks for the help - and sorry for the inconvenience 😅 |
@dauledk No inconvenience; thanks for following up! (And thank you @stefanholzapfel for jumping in!) |
@abernix when working with Subscriptions, you get an ExpressContext that has |
I am trying to follow this guide, on setting up subscriptions with
apollo-server-express@2.9.0
, but the middleware connection check is giving a typescript problem:Property 'connection' does not exist on type 'ExpressContext'
The code snippet:
Currently, I am doing this workaround:
const { req, connection } = v as any;
The text was updated successfully, but these errors were encountered: