Jidé
11/27/2018, 12:50 PMsubscription {
chapter(where: { mutation_in: [UPDATED] }) {
mutation
updatedFields
node {
id
title
}
previousValues {
id
title
}
}
}
And prisma.yml :
subscriptions:
chapter:
query: ./chapter.graphql
webhook: <https://XXXXXXX.execute-api.eu-west-1.amazonaws.com/dev/prismaSubscriptions>
A test query :
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 ? 🙂