mirror of
https://github.com/ash-project/ash_graphql.git
synced 2024-09-20 13:24:14 +12:00
13 lines
284 B
Elixir
13 lines
284 B
Elixir
|
defmodule AshGraphql.Resource.Notifier do
|
||
|
use Ash.Notifier
|
||
|
|
||
|
@impl Ash.Notifier
|
||
|
def notify(notification) do
|
||
|
IO.inspect(notification, label: :Notifier)
|
||
|
|
||
|
Absinthe.Subscription.publish(AshGraphql.Test.PubSub, notification.data,
|
||
|
subscrible_created: "*"
|
||
|
)
|
||
|
end
|
||
|
end
|