Image for post
Image for post

graphql-playground v1.8.8: Introducing Schema Polling ✨

Rohit Ravikoti
Jan 31, 2019 · 2 min read

We would like to introduce the new schema polling feature shipping with version 1.8.8 of graphql-playground! See it in action here:

Image for post
Image for post

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.

Settings

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*
  • schema.polling.interval: to specify frequency of polling in milliseconds. Default: 2000
Image for post
Image for post

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

graphql-birdseye 🐦: We put out a proposal for adding schema visualization to the Playground. Please check it out and give us your feedback!

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!

Thanks for reading!

Check out my other articles:

The new SDL view in graphql-playground v1.8.5 —

https://www.novvum.io/post/the-new-sdl-view-in-graphql-playground-v1-8-5

Successfully working with open source software

https://www.novvum.io/post/successfully-working-with-open-source-software

Novvum

We are Novvum.

Thanks to Trevor Heath, Nikolas Burk, and Kris Yang

Rohit Ravikoti

Written by

Co-founder of Novvum, a software agency specializing in GraphQL and JavaScript, and daily meditator.

Novvum

Novvum

We are Novvum. A hard-working team of engineers, designers, and tech enthusiasts that love helping companies build leading software products.

Rohit Ravikoti

Written by

Co-founder of Novvum, a software agency specializing in GraphQL and JavaScript, and daily meditator.

Novvum

Novvum

We are Novvum. A hard-working team of engineers, designers, and tech enthusiasts that love helping companies build leading software products.

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store