Why am i getting the error: server must support graphql-ws or subscriptions-transport-ws protocol in Apollo studio #7597
Replies: 2 comments
-
I can't reproduce (using the runnable example here: https://www.apollographql.com/docs/apollo-server/data/subscriptions#basic-runnable-example) and it's not obvious to me where your implementation is different. Can you share a full reproduction that I can run locally? |
Beta Was this translation helpful? Give feedback.
-
This code run good import { ApolloServer } from '@apollo/server'; async function startServer() {
} startServer() |
Beta Was this translation helpful? Give feedback.
-
I just copied and modified the example in the docs, intergrating
express
,apollo-server
and with subscriptions but surprisingly I'm getting an error saying:This is happening in the
Apollo Studio
, where am i wrong. This is the code that i have on the server:Beta Was this translation helpful? Give feedback.
All reactions