This repository is to reproduce an issue where subscriptions don't work with graphql-yoga
& prisma-binding
.
Requirements:
- Docker - download here
yarn
ornpm
yarn start
The server will listen on port 4000
then you can try this query:
subscription {
messages {
mutation
updatedFields
node {
id
text
}
}
}
Which will return:
{
"error": {
"message": "The provided query doesn't include any known model name. Please check for the latest subscriptions API."
}
}
This query should work fine on Prisma (port 4466
) though:
subscription {
chatMessage(where: {
mutation_in: [UPDATED, CREATED]
}) {
mutation
updatedFields
node {
id
text
}
}
}