-
Hello, I looked at the recipes posted and I decided to implement the standard one under the 'Use the client' topic. Here is my implemented code for the client: import { createClient } from "graphql-ws"; const client = createClient({ async function execute(payload) {
I get the correct data when console.log(result) : My server is configured properly because I get console logs such as 'Connect, Subscribe, Next, Complete' This is my mutation :
This is my subscription :
So my question is: How should i proceed in order to get the published data in my Vue3 client? I'd really appreciate your help, I'm stuck on this for quite some time. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Sadly I have no experience with Vue whatsoever. Quite frankly, I don't even fully understand the question haha. Sorry, but I cannot help you here. |
Beta Was this translation helpful? Give feedback.
-
Managed to solve it, it was my mistake. I created 2 different instances of pubsub in the mutations folder and subscriptions folder, didn't know it's supposed to be the same instance. Thank you for your implication and fast responses. |
Beta Was this translation helpful? Give feedback.
Managed to solve it, it was my mistake. I created 2 different instances of pubsub in the mutations folder and subscriptions folder, didn't know it's supposed to be the same instance.
Thank you for your implication and fast responses.