Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 489 Bytes

File metadata and controls

23 lines (16 loc) · 489 Bytes

GraphQL subscription server example

This is a simple GraphQL subscription server example using graphql-yoga.

Run npm run start to start the server.

Go to http://localhost:3000/playground to launch the GraphQL Playground.

Subscribe to the server:

subscription {
  sensor {
    time
    temp
    humidity
  }
}

Tools