apolloClient.subsribe 未定义

apolloClient.subsribe is undefined

我正在尝试订阅 apollo,但出现以下错误

apolloClient.Subsribe is undefined

附加我的客户端订阅

const networkInterface = createNetworkInterface('http://localhost:8000/graphql');

const wsClient = new SubscriptionClient(`ws://localhost:8000/`, {
                 reconnect: true,
                 connectionParams: {
                 }
}); 

const networkInterfaceWithSubscriptions = addGraphQLSubscriptions(networkInterface,wsClient);


const apolloClient = new ApolloClient({
    networkInterface: networkInterfaceWithSubscriptions
})

原因是名字写错了

apolloClient.subscribe 解决了我的问题