I don’t understand why my server side subscription...
# orm-help
j
I don’t understand why my server side subscription does not work... Here is my subscription :
Copy code
subscription {
  chapter(where: { mutation_in: [UPDATED] }) {
    mutation
    updatedFields
    node {
      id
      title
    }
    previousValues {
      id
      title
    }
  }
}
And prisma.yml :
Copy code
subscriptions:
  chapter:
    query: ./chapter.graphql
    webhook: <https://XXXXXXX.execute-api.eu-west-1.amazonaws.com/dev/prismaSubscriptions>
A test query :
Copy code
mutation {
  updateChapter(
    where: {
      id: "cjot5ky4d521f0a75pytaabzl"
    }
    data: {
      title: "Hello 2"
    }
  ) {
  	id
  }
}
The webhook is a node lambda, I see cloudwatch logs when visiting the url manually. Calling the query in playground returns the result, but no logs show up in the lambda cloudwatch logs. Any idea ? 🙂