Open ChromeGG opened 2 years ago
Subscriptions are definitely something that we need better examples of. The types are there in the docs because creating a good relevant example was pretty complicated.
There is a more complete example in the tests: https://github.com/hayes/pothos/tree/149eb3ea286f747c7bc9391bce467b7a8bb813de/packages/plugin-smart-subscriptions/tests/example
The actual schema has a bunch of things to test specific patterns, and isn't a great example of how to structure things, but it might still be helpful.
The types are mixed with values in this docs https://pothos-graphql.dev/docs/plugins/smart-subscriptions
btw. I'm struggling with working example with yoga graphQL. It will be nice to have working example and more documentation.
TY & GJ, I love this lib ❤️