Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem running example #6

Closed
lindroth opened this issue Oct 12, 2018 · 5 comments
Closed

Problem running example #6

lindroth opened this issue Oct 12, 2018 · 5 comments

Comments

@lindroth
Copy link

When I try to run the example I get:

go run main.go

github.com/matiasanaya/go-graphql-subscription-example/graphqlwshandler

graphqlwshandler/handler.go:54:20: h.schema.Subscribe undefined (type *graphql.Schema has no field or method Subscribe)
graphqlwshandler/handler.go:66:24: select case must be receive, send or assign recv

@matiasanaya
Copy link
Owner

Hi,

  1. What version of Go are you running?

  2. Have you ran dep ensure to pull down the correct dependencies for this project as per the README.md?

@lindroth
Copy link
Author

My bad. I missed that.
I also missed that github.com/graph-gophers/graphql-go does not support websockets yet in their main release.

@matiasanaya
Copy link
Owner

@lindroth if you are interested in this feature you can support these PR's:

@lindroth
Copy link
Author

Already on it. I found them after starting digging.
Do you think graph-gophers/graphql-go is good even though it is missing subscriptions or is there a more mature library that already has it? Just starting a new quite big project.

@matiasanaya
Copy link
Owner

@lindroth I would definitively use graph-gophers/graphql-go over any other graphQL Go library. That being said, if you must have GraphQL Subscriptions (production ready) I don't think there is a good option right now and that's why I've been contributing. Hopefully that changes shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants