ash_graphql/lib/resource/notifier.ex
2024-08-26 11:40:52 +02:00

12 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