-
Is there anyway we can reload/refresh graphiql playground docs whenever there's a change in schema?
Right now graphiql playground docs are not being updated when schema changes. Is there any way we can trigger refresh on schema change? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Right now you can only reload the GraphiQL playground manually within your browser. We could potentially implement this within GraphQL Yoga GraphiQL, however, for the best experience it should probably be implemented within https://github.com/graphql/graphiql, which GraphiQL Yoga is built around. I created #1536 for tracking this here. Furthermore, you are loading the schemas based on the context, thus there is no one true schema, which makes it harder for GraphiQL to know which one would be the correct schema in a given context. |
Beta Was this translation helpful? Give feedback.
Right now you can only reload the GraphiQL playground manually within your browser. We could potentially implement this within GraphQL Yoga GraphiQL, however, for the best experience it should probably be implemented within https://github.com/graphql/graphiql, which GraphiQL Yoga is built around.
I created #1536 for tracking this here.
Furthermore, you are loading the schemas based on the context, thus there is no one true schema, which makes it harder for GraphiQL to know which one would be the correct schema in a given context.