absinthe

Subscription with Authorization: Skip trigger if condition isn't met

断了今生、忘了曾经 提交于 2019-12-12 01:09:50
问题 I have a Phoenix web application and am using Absinthe for subscriptions that are triggered whenever a new Comment is added to a Topic . I am trying to send a subscription only if the user is a member of a topic, and otherwise not send something at all. So far I've tried playing with config as mentioned in the Subscription docs but it seems like that it is only executed when creating the subscription and not when it is triggered. I'm hoping it is something as simple as: resolve fn comment, _,