GraphQL Apollo WS subscriptions Example

Check the example

Getting started

Start the chat server:

1
2
3
cd chat
go mod download
go run /server/server.go

Playground running on: http://localhost:8085

Start wundergraph:

1
npm install && npm start

Check results

1
curl -N http://localhost:9991/operations/Chat

Go to the playground and run the following query:

1
2
3
4
5
6
mutation SendMessage {
post(roomName: "test", username: "me", text: "hello!") {
id
text
}
}

Learn more

Was this article helpful to you?
Provide feedback

Edit this page