# Dynamic GraphQL polling with React and Apollo Client

DevFeed: [Dynamic GraphQL polling with React and Apollo Client](<https://devfeed.tech/articles/dynamic-graphql-polling-with-react-and-apollo-client-23277.md>)

Original publisher: [Read original article](<https://www.apollographql.com/blog/dynamic-graphql-polling-with-react-and-apollo-client-fb36e390d250>)

Author: David Glasser

Published: 2017-12-05T23:00:12Z

Content type: tutorial

Language: en

Sources: [Apollo Blog](<https://devfeed.tech/sources/apollo-blog.md>)

Topics: [apollo-client](<https://devfeed.tech/topics/apollo-client.md>), [GraphQL](<https://devfeed.tech/topics/graphql.md>), [React](<https://devfeed.tech/topics/react.md>), [migration](<https://devfeed.tech/topics/migration.md>), [Meteor](<https://devfeed.tech/topics/meteor.md>)

Tags: [apollo](<https://devfeed.tech/tags/apollo.md>), [apollo-client](<https://devfeed.tech/tags/apollo-client.md>), [graphql](<https://devfeed.tech/tags/graphql.md>), [react](<https://devfeed.tech/tags/react.md>)

## AI overview

This tutorial explains how to dynamically adjust a GraphQL polling interval in a React interface using Apollo Client and react-apollo. The example monitors database migration progress, using slower polling normally and faster updates while a migration is running.

## Source excerpt

I recently added a feature to the admin interface on Meteor Galaxy, Meteor Development Group's hosting platform for Meteor apps, that shows the state of our internal database migrations. I'm using Apollo Client with react-apollo to build Galaxy's UI, and I wanted the control panel to automatically update to show the state of any migrations. To do that, I had to decide how often the GraphQL query would poll our server.