https://github.com/davidbuck/node-graphql-subscription-example
Simple GraphQL subscription server example using graphql-yoga
https://github.com/davidbuck/node-graphql-subscription-example
graphql-subscriptions graphql-yoga
Last synced: 2 months ago
JSON representation
Simple GraphQL subscription server example using graphql-yoga
- Host: GitHub
- URL: https://github.com/davidbuck/node-graphql-subscription-example
- Owner: DavidBuck
- License: mit
- Created: 2020-05-07T05:06:37.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T21:55:09.000Z (over 2 years ago)
- Last Synced: 2025-02-01T03:26:16.991Z (4 months ago)
- Topics: graphql-subscriptions, graphql-yoga
- Language: JavaScript
- Homepage:
- Size: 706 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# GraphQL subscription server example
This is a simple GraphQL subscription server example using [graphql-yoga](https://github.com/prisma-labs/graphql-yoga).
Run `npm run start` to start the server.
Go to [http://localhost:3000/playground](http://localhost:3000/playground) to launch the GraphQL Playground.
Subscribe to the server:
```graphql
subscription {
sensor {
time
temp
humidity
}
}
```## Tools
- [graphql-yoga](https://github.com/prisma-labs/graphql-yoga)