https://github.com/remorses/graphql-go-subscription-example
https://github.com/remorses/graphql-go-subscription-example
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/remorses/graphql-go-subscription-example
- Owner: remorses
- Created: 2020-05-18T17:29:32.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-19T10:17:48.000Z (over 5 years ago)
- Last Synced: 2024-05-02T02:10:32.249Z (over 1 year ago)
- Language: Go
- Size: 4.88 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
run with
```
go mod download
go run main.go
```
things to notice
- only works with playground and not with graphiql because of a issue with the `handler` package
- to create channels you MUST use `chan interface{}`, because internally as `graphql-go` we use a type cast
- currently you must define a Resolver that returns `params.Root` or you must return the top level subscription field