Minimal Reproduction example
Including
- AshGraphql
- AshSqlite
In the meanwhile you can skip most steps shown in the Video. As the CLI is doing that for you. You just need to run some cli commands and then modify the resource
If you want to start from scratch you can run:
Setup new project (I think the commands provide on the ash-hq site would also work)
mix igniter.new my_subscription_app_sqlite --with phx.new --install ash,ash_sqlite,ash_graphql,absinthe_phoenix
Create a resource
mix ash.gen.resource MySubscriptionApp.Posts.Post --uuid-v7-primary-key id --attribute title:string:required:public --attribute text:string:required:public --extend graphql,sqlite
Modify the post resource:
Switch from simple GraphQL interface to playground - as the simple seem to not support the subscriptions: