Skip to content

Latest commit

 

History

History

graphql-apollo-subscriptions

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

WunderGraph subscriptions example - graphql apollo WS

Getting started

Start the chat server:

cd chat
go mod download
go run server/server.go

Playground running on: http://localhost:8085

Start wundergraph:

npm install && npm start

Check results

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

TS operation

curl -N http://localhost:9991/operations/users/get?id=1

Go to the playground and run the following query:

mutation SendMessage {
  post(roomName: "test", username: "me", text: "hello!") {
    id
    text
  }
}

Learn More

Read the Docs.

Got Questions?

Join us on Discord!