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

Support for none http clients #21

Open
asafigan opened this issue Aug 6, 2018 · 2 comments
Open

Support for none http clients #21

asafigan opened this issue Aug 6, 2018 · 2 comments

Comments

@asafigan
Copy link

asafigan commented Aug 6, 2018

GraphQL doesn't have to be served over http. In Apollo, they have abstracted the network client away, while providing a default implementation. This is great for things like testing, support for subscriptions over websockets, or any other customization the user wants to make without having to support it in this library.

I would like this abstraction so that I could build a graphql server in dart to act as a proxy to the real graphql server. I would store all mutations while off network and handle them in dart, then next time the network is back online, I would send all of them to the real server.

I don't think this library should be responsible for this kind of functionality, so I think the network abstraction would be the best option.

@stevenolay
Copy link

@asafigan What solution have to come up with so far? My team is thinking about using this as is for the HTTP stuff and building a seperate solution for websockets.

@asafigan
Copy link
Author

@stevenolay I have decided to not use dart in my project. Sorry I can't give you any suggestions.

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