booster icon indicating copy to clipboard operation
booster copied to clipboard

Allow accessing GraphQL client in local provider

Open NickSeagull opened this issue 5 years ago • 3 comments

Blocked until local provider is in working state

Perhaps some more issues, but these essentially

  • [x] #227
  • [x] #318
  • [x] #317
  • [ ] #315
  • [ ] #314

Description

Many systems provide a graphic client in order to try the GraphQL queries/mutations on it without having to download Postman, or whatever client.

There is Altair GraphQL which is a web client for GraphQL that can be easily integrated into the local provider express server by using altair-express-middleware.

To integrate it into the /graphql-client, one would write some code like this into the infrastructure package:

import { altairExpress } from 'altair-express-middleware';

server.use('/graphql-client', altairExpress({
  endpointURL: '/graphql',
  subscriptionsEndpoint: `ws://localhost:4000/graphql`,
}));

It would give us some screen like this:

altair screenshot

NickSeagull avatar Oct 11 '20 07:10 NickSeagull

@NickSeagull can I take this?

dantehemerson avatar Oct 21 '20 23:10 dantehemerson

If I'm not mistaken, the local provider is still missing some GraphQL features in order to be fully usable (subscriptions for sure). So I guess this task depends on finishing first the GraphQL integration.

alvaroloes avatar Oct 22 '20 10:10 alvaroloes

@dantehemerson I'm currently working out the local provider, I would wait first :)

NickSeagull avatar Oct 22 '20 11:10 NickSeagull