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

hello can you convert for native js? #40

Closed
timeshift92 opened this issue Nov 22, 2019 · 6 comments
Closed

hello can you convert for native js? #40

timeshift92 opened this issue Nov 22, 2019 · 6 comments

Comments

@timeshift92
Copy link

No description provided.

@timeshift92 timeshift92 changed the title hello can you conver for native js? hello can you convert for native js? Nov 22, 2019
@jaydenseric
Copy link
Owner

I'm not quite sure what you mean, exactly?

@timeshift92
Copy link
Author

I write my projects on svelte and would like to use your library but it is written only for react, is there any way to rewrite it under native js? If so, can you tell? I am ready to do it.

@jaydenseric
Copy link
Owner

The GraphQL class is a non-React specific GraphQL client, that could be useful for you :)

@timeshift92
Copy link
Author

cool thx =)

@timeshift92
Copy link
Author

Do you have any ideas on subscription?

@jaydenseric
Copy link
Owner

@timeshift92 GitHub issues are more for bugs than general conversation, but if you would like to keep up with subscriptions support you can subscribe to #15.

Hypothetically a dedicated subscriptions client and React hook could be created, that would compliment the existing graphql-react API.

After a fair bit of dabbling, there are two main reasons I haven't shipped subscriptions support:

  1. I don't have a need for them, and there are a lot of engineering complexities that can be avoided just by polling.
  2. There is no standard GraphQL subscriptions WebSocket protocol. Apollo has made quite a few changes to their protocol, and it's not well documented.

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