pokorson
02/07/2018, 11:50 AMgraphql-yoga
and Prisma, I've used starter project and took subscriptions
example from prisma repo. When tested in playground and db tab subscriptions works fine, but when I added them to my schema I'm not getting any message from server. That's how my mutation resolver look:
sendMessage(parent, { type, message, chatId }, ctx, info) {
return ctx.db.mutation.createMessage(
{
data: {
chat: {
connect: {
id: chatId,
},
},
type,
message,
},
},
info
);
},