question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

It seems like it would be a pretty good idea to leverage Apollo Link to deal with how to interface with the Graphql endpoint, how to deal with subscriptions and more broadly standardize how to execute any Graphql ops in a more transparent / pluggable way.

People would be able to provide any composed link they want to Playground and it would work transparently.

This would simplify the code around subscriptions and make Playground integration a lot more agile.

For example, my use case is around how subscriptions are handled right now which is hardcoded to use subscriptions-transport-ws. In my case, our backend is written in Elixir using Absinthe which leverages Phoenix channels so a special client is needed to send ops over ws.

We have already an Apollo Link for it and should Playground support it, it would be trivial to have Playground works with Absinthe.

@timsuchanek what do you think ?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:4
  • Comments:15 (8 by maintainers)

github_iconTop GitHub Comments

3reactions
kbrandwijkcommented, Oct 24, 2017

Passing in a Apollo Link when integrating the Playground in your own app sounds like a great idea to me!

2reactions
DavidJFelixcommented, Dec 31, 2017

@schickling I’m doing a little work on it right now. I’ll see if I can get a POC and I’ll come back if I need any help or guidance.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Apollo Link overview - Apollo GraphQL Docs
Whenever Apollo Client prepares to execute a GraphQL operation, it calls the request handler of the first link in the chain. Each link...
Read more >
apollographql/apollo-link: Interface for fetching and ... - GitHub
apollo -link is a standard interface for modifying control flow of GraphQL requests and fetching GraphQL results, designed to provide a simple GraphQL...
Read more >
How to use the apollo-link.from function in apollo-link - Snyk
To help you get started, we've selected a few apollo-link examples, based on popular ways it is used in public projects. Secure your...
Read more >
Understanding Client-Side GraphQl With Apollo-Client In ...
The Apollo platform is an implementation of GraphQL that transfers data between the cloud (the server) to the UI of your app. When...
Read more >
A complete introduction to Apollo, the GraphQL toolkit
Apollo Client · Start a React app · Get started with Apollo Boost · Create an ApolloClient object · Apollo Links · Caching...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found