2017-04-26 3 views
1

Ich versuche, die apollo zu abonnieren und ich bin immer Fehler folgendeapolloClient.subsribe undefiniert

apolloClient.Subsribe is undefined

Anbringen meiner Client-Seite Abonnement

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 
}) 

Antwort

1

Der Grund wegen der falschen Namen ist .

apolloClient.subscribe Behebungen mein Problem