express-graphql icon indicating copy to clipboard operation
express-graphql copied to clipboard

express-graphql as a graphiql server for another endpoint?

Open Magneticmagnum opened this issue 8 years ago • 3 comments

I'm using this express-graphql repo to setup a graphiql server that first fetches an introspection schema from another graphql endpoint.

My setup looks like this:

___________________                 _________________________
| graphql-express |  ========>    | graphql server endpoint |
|    graphiQL     |   introspects |                         |
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯                ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ 

I can get the schema served fine using this setup via introspection However, is it possible to test the queries as well from the graphiQL endpoint?

Magneticmagnum avatar May 03 '17 18:05 Magneticmagnum

@Magneticmagnum you should be able to, by using the embedded GraphiQL app initialized by passing graphiql: true option - could you try that?

asiandrummer avatar May 10 '17 22:05 asiandrummer

Hi @Magneticmagnum,

Just curious if you were able to get this working? I'm hoping to do the same

levans002 avatar Aug 15 '17 00:08 levans002

This library has been deprecated and this repo will be archived soon. It has been superseded by graphql-http.

Furthermore, if you seek a fully-featured, well-maintained and performant server - I heavily recommend GraphQL Yoga!

enisdenjo avatar Mar 20 '23 12:03 enisdenjo