Hi guys! I'm trying to wrap my head around my Pris...
# orm-help
m
Hi guys! I'm trying to wrap my head around my Prisma subscriptions isn't working with my custom resolvers. But works if I use the Prisma API directly
h
Please use threads 🙂
m
Okay, thanks
So I have
Copy code
type Subscription {
  messageSent: MessageSubscriptionPayload
}
And resolver
Copy code
messageSent: {
    subscribe (root, args, { prisma }) {
      return prisma.$subscribe
        .message({
          mutation_in: ['CREATED']
        })
        .node()
    }
  }
But I keep getting
null
when I run the subscription on http://localhost:4000
But if I run the subscription directly on the model (in this case,
Message
) in Prisma endpoint, it seems to work fine
a
Hi @mezie Did you resolve this issue?