Subscription events are triggered in response to a mutation and the schema mirrors mutations directly. To subscribe to new Posts:
subscription {
createPost {
id
imageUrl
description
}
}
Check out the example at https://github.com/graphcool-examples/react-apollo-instagram-subscriptions-example
This is a simple extension of our Instagram example that simply refetches the list of posts when a new post is created
During the beta period we are working on integrating subscriptions in the Graphcool Playground. Until that is done you can use this extended version:
http://graphcool-subscriptions-debugger.surge.sh/
This is a beta, but we don't expect any major issues. Should you find anything, please let me know in slack or by mail.
If you test it out and everything works, I would also really appreciate it if you could let me know.
Thanks and happy hacking!