Skip to content
This repository has been archived by the owner on Mar 20, 2023. It is now read-only.

Subscription graphiql support #436

Conversation

junminstorage
Copy link
Contributor

@junminstorage junminstorage commented May 8, 2018

See #390 (comment) for usage

@facebook-github-bot
Copy link

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need the corporate CLA signed.

If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks!

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@@ -72,6 +82,7 @@ add "&raw" to the end of the URL within a browser.
<script src="//cdn.jsdelivr.net/react/15.4.2/react.min.js"></script>
<script src="//cdn.jsdelivr.net/react/15.4.2/react-dom.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/graphiql@${GRAPHIQL_VERSION}/graphiql.min.js"></script>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ideally we should manage the react and other client-side libs via npm or bower, npm is recommended, then browserify and create bundle, in that way, some issue like #112 can be resolved.

@IvanGoncharov
Copy link
Member

IvanGoncharov commented May 14, 2018

@IvanGoncharov can you comment on the PR #436 and so we can move forward on this?

@junminstorage Thanks for PR 👍
As I understand the goal of this PR is to add subscription support to the GraphiQL.

I think it's pretty big step to add subscriptions-transport-ws as a dependency since it's Apollo-specific and also marked as Work in progress! in the README.

Anyway, I think making such big decisions is beyond my current role in this project.

@leebyron What do you think about this feature?

@calvernaz
Copy link

calvernaz commented May 14, 2018

subscriptions-transport-ws is an extension for GraphQL, and you can use it with any GraphQL client and server (not only Apollo).

@IvanGoncharov generally I would go with something working and keep iterating on it. Of course, that comment from their site might not be totally accurate - however, I think this is a good first step.

Personally, I can put some time into this feature to improve and remove any dependency with some guidance of course.

@calvernaz
Copy link

Is anything we can do to move this one forward?

@junminstorage
Copy link
Contributor Author

junminstorage commented May 22, 2018

'subscriptions-transport-ws' is generic graphql subscription spec implementation, I am not sure why we need to reinvent a wheel.

and this PR answered a well-liked community's request per original question from #390 (comment)

@tylerreckart
Copy link

It would be nice to see some movement on this PR

@junminstorage
Copy link
Contributor Author

ping @IvanGoncharov and @leebyron here. let us know what we need to do here to get it resolved.

@donnierisk
Copy link

Hey guys, been working with this package, it would really be awesome if the subscriptions work so that we can start using this on our project. is there anything we can do to help speed up the process?

@vrochamaia
Copy link

Any updates on this?

1 similar comment
@linxiaowu66
Copy link

Any updates on this?

@benjie
Copy link
Member

benjie commented May 24, 2019

[Deleted]

@benjie benjie closed this May 24, 2019
@benjie
Copy link
Member

benjie commented May 24, 2019

And now I'm going to re-open it, blushing heavily, because I just realised this is the express-graphql repo, not the graphiql repo. 😳

Gosh, is my face red right now.

@benjie benjie reopened this May 24, 2019
@nileio
Copy link

nileio commented Apr 7, 2020

thanks for pushing this through. Anyone from the team could provide us with an update on this please? keen to get subscriptions to work

@junminstorage
Copy link
Contributor Author

junminstorage commented Aug 4, 2020

Hi All, I am original author for this PR. per the #436 (comment), the roadblocker is the dependency on subscriptions-transport-ws due to its repo was not under MIT license? Now this repo is under MIT now. Let me know if anything I can do, besides resolving the merge conflicts, to move it forward.

@acao
Copy link
Member

acao commented Aug 5, 2020

that would be fantastic if you could do that @junminstorage ! going to add myself and daniel as reviewers so we can get this through. apologies the GraphiQL docs are so sparse on subscriptions, we need to add that to the docs/examples very badly.

@junminstorage
Copy link
Contributor Author

Awesome I am going to working on this PR this week. expect to have it ready by early next week.

@cannc4
Copy link

cannc4 commented Aug 10, 2020

Looking forward to it!

@junminstorage
Copy link
Contributor Author

closed it and replaced by #686

@junminstorage
Copy link
Contributor Author

replaced by #687

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

Successfully merging this pull request may close these issues.

None yet