Tutorial: GraphQL Subscriptions (client-side)
Shadaj Laddad
619

I’m getting this error from the graph server:

“Argument “channelId” of required type “ID!” was not provided.”.

I checked the message that’s sent on the websocket and it definitely has the channelId variable:

{“id”:”1",”type”:”start”,”payload”:{“query”:”subscription messagesSubscription($channelId: ID!) {\n messageAdded(id: $channelId) {\n id\n text\n __typename\n }\n}\n”,”variables”:{“channelId”:”1"},”operationName”:”messagesSubscription”}}

Any idea why this would happen?

Show your support

Clapping shows how much you appreciated Wathsala Werapitiya’s story.