type Subscription {
postAdded: Post
}
type Subscription {
post: PostSubscription
}
type PostSubscription {
postAdded: Post
}
Subscription: {
post: () => ({
PostSubscription: {}
})
},
PostSubscription: {
postAdded: {
subscribe: () => pubSub.asyncIterator(['postAdded'])
}
}
"apollo-server-express": "1.3.6",
"apollo-server-module-graphiql": "1.3.4",
"graphql-subscriptions": "0.5.8",
"graphql": "0.13.2",