Hi guys, I am trying to fire a server side subscription to create a notification when a comment is added.
This is my graphql subscription:
subscription serverSideCommentsSubscription {
Comment(filter: {
mutation_in: [CREATED]
}){
node {
id
event {
id
host {
id
}
attendees {
id
}
}
user {
id
name
picture
}
}
}
}
the current behavior is the function doesn't fire when I create a new comment, even if I create the new comment directly in the data explorer of graphcool playground.
However if I run this in the graphcool playground I get the data back, so the query is well written.
The expected behavior is the serverside subscription should fire the resolver and I should be able to get the data on server and perform the operations I need to do(create a notification).
Is this a current bug in the server side subscriptions? am I missing something in the graphcool docs?
PD: I have another subscription running and working with the same structure but of course with different purpose. Also, this subscription worked 2 or 3 times in the past and I got the logs in the playground, but didn't work anymore. Thanks in advance
Hi guys, I am trying to fire a server side subscription to create a notification when a comment is added.
This is my graphql subscription:
this is my graphcool.yml:
this is my type:
this is my resolver:
the current behavior is the function doesn't fire when I create a new comment, even if I create the new comment directly in the data explorer of graphcool playground.
However if I run this in the graphcool playground I get the data back, so the query is well written.
The expected behavior is the serverside subscription should fire the resolver and I should be able to get the data on server and perform the operations I need to do(create a notification).
Is this a current bug in the server side subscriptions? am I missing something in the graphcool docs?
PD: I have another subscription running and working with the same structure but of course with different purpose. Also, this subscription worked 2 or 3 times in the past and I got the logs in the playground, but didn't work anymore. Thanks in advance