Question regarding subscriptions. Coming from the ...
# orm-help
r
Question regarding subscriptions. Coming from the Meteor.js days, I'm trying to implement a realtime chat POC When playing with subscriptions in Prisma I noticed that the data only seems to show when something happens rather than giving me all of the data, and sending new data realtime. Is this the expected behavior of subscriptions or am I misusing this functionality. Also if anyone has advice on how to accomplish this using prisma could you please let me know
n
It is definitely possible to ask for the data that you changed as well! 🙂 Did you already check out the subscriptions tutorial: https://www.prisma.io/tutorials/build-a-realtime-graphql-server-with-subscriptions-ct11/
(the article uses Prisma bindings, but it should be pretty instructive in regards to the subscription API provided by Prisma)
r
thank you I will take a look
Hi so I just looked at the tutorial, i'm actually looking for a slightly different use case
i'm more so saying if I am listening for realtime messages coming into a queue of an existing thread I'd also like to know the other data that already existed
for example, when we loaded this thread it's pushing the message in real time each time I make a reply, but when I loaded the thread it also showed the previous conversation
right now in prisma if I were to replicate this chat, the thread would be empty and only my new entries would be added to the conversation ..