-
Notifications
You must be signed in to change notification settings - Fork 731
Description
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 ?