graphql-playground v1.8.8: Introducing Schema Polling
We would like to introduce the new schema polling feature shipping with version 1.8.8 of graphql-playground! See it in action here:
Schema polling automagically updates the embedded documentation in the Playground. That way, you don’t need to hit the reload button any more when introducing a schema change.
There are three settings to control the polling behavior:
- schema.polling.enable: to enable/disable the polling feature entirely. Default: true
- schema.polling.endpointFilter: to specify a regex pattern to restrict which url to poll. Default: *localhost*. If you want to use it for multiple endpoints, you can specify it like so: ".*(localhost|marvelql).*".
- schema.polling.interval: to specify frequency of polling in milliseconds. Default: 2000
Upgrade your Playground version and try it out yourself, or you could play around with it right now at graphqlbin. If you happen to notice the marvel schema we used in the demo and want to check it out, you can find it here 😉.
This has been a much needed feature for us here at Novvum and a lot of the GraphQL community shared the sentiment, so we made it happen! We hope it proves useful and makes GraphQL developers’ lives a little bit easier 😁.
Upcoming Proposals We’re Excited About
explorer ☑️: The folks over at OneGraph built and just recently open sourced an explorer plugin for GraphiQL and are looking to do the same for Playground. Check out their proposal if you’re interested!