Currently when I create a subscription I am able to see data as mutations happen.
I would like to create subscriptions in a way where I also get the initial query data as well within the same subscription feed.
For example, if I am creating a chat application where I am creating realtime messages.
If a user enters a chat or thread, I’d like that user to already have the preexisting messages from the conversation returned in the subscription.
Currently, a user would enter a chat and only the new messages would be displayed in realtime,
but I would like to display perhaps the first or last 10 messages along with the subscription.
Of course one could query the database then provide a subscription with new incoming data, but that doesn’t seem like the right way to go.
Any help would be greatly appreciated.