Hi, I have a problem setting up subscriptions with...
# prisma-whats-new
p
Hi, I have a problem setting up subscriptions with
graphql-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:
Copy code
sendMessage(parent, { type, message, chatId }, ctx, info) {
    return ctx.db.mutation.createMessage(
      {
        data: {
          chat: {
            connect: {
              id: chatId,
            },
          },
          type,
          message,
        },
      },
      info
    );
  },