I'm trying to test out server side subscriptions i...
# prisma-whats-new
k
I'm trying to test out server side subscriptions in graph.cool and can't seem to get the subscription to trigger. I went and added a new function, selected server side subscription, gave it the
User
type, clicked define function and went with the default generated subscription of
mutation_in: [CREATED, UPDATED, DELETED]
and the function that just returns
{data: event.data}
. If I use the Test Run button the function works as expected, but when I update my user data it still shows 0 invocations and an empty log. I saw in the docs that there's a limitation where subscriptions won't work for the
File
type, is there any reason the other system type of
User
wouldn't work either?
☝️ 1
1
t
Does anyone have an example of a subscription you've gotten to work here? the docs examples are not triggering for me
p
@the-simian Subscriptions are being invoked for me but the log is not working in the graphcool console, still shows that there are 0 invocations when in fact there are many. I am using webtask so I can see the invocations in my webtask logger. I think this is a recent bug. My logs were working the other day.
👍 1
t
Whoa that's good to hear, maybe we're in the same boat
k
They are indeed getting invoked after all, thanks @patstrz
👍 2