You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And if this mutation is meant to trigger a subscription, for example if my schema.ex is like this:
subscriptiondofield:updated_menu_item,:menu_itemdoconfig(fn_args,_info->{:ok,topic: "*"}end)trigger(:update_menu_item,topic: fn%{menu_item: menu_item}->["*"]_->[]end)resolve(fn%{menu_item: menu_item},_,_->{:ok,menu_item}end)end# more subscriptions,etc.end
then the subscription is not triggered. This might have something to do with how the Absinthe.Phoenix SDL is processed differently to normal Graphql SDL.
The text was updated successfully, but these errors were encountered:
I can expand on this as much as you want so I'll just put down the basic info for now.
If I have a mutation in a phoenix controller (in a
@graphql
module attribute), like this:And if this mutation is meant to trigger a subscription, for example if my
schema.ex
is like this:then the subscription is not triggered. This might have something to do with how the Absinthe.Phoenix SDL is processed differently to normal Graphql SDL.
The text was updated successfully, but these errors were encountered: