Subscriptions do not work when declared in the domain.
Subscriptions work when declared in the Resource like this:
However, they do not work when declared in the Domain like this:
4 Replies
🤔 likely something relatively simple missing from the underlying DSL info gathering up subscriptions.
@barnabasj do you have a few to take a look sometime this week?
sure thing
Note:
- When declared in Resource, it requires the
pubsub JoseValimIsMyHeroWeb.Endpoint
option to be declared.
- The pubsub JoseValimIsMyHeroWeb.Endpoint
option gives an error when used in the Domain.This just wasn't implemented, I added it now https://github.com/ash-project/ash_graphql/pull/341
GitHub
Add domain-level pubsub configuration for subscriptions by barnabas...
This allows users to set pubsub at the domain level instead of requiring it at every resource level. Resources can still override domain-level pubsub with their own configuration.