Recall & Review
beginner
What is refetching in GraphQL?
Refetching means asking the server again for fresh data to update what you already have. It helps keep your app's data current.
Click to reveal answer
beginner
What does polling do in GraphQL?
Polling automatically asks the server for new data at regular time intervals, like checking your mailbox every 5 minutes.
Click to reveal answer
intermediate
How is polling different from refetching?
Polling happens automatically at set times, while refetching is done manually when you want fresh data.
Click to reveal answer
intermediate
Why use polling in a GraphQL app?
Polling keeps data updated without user action, useful for live info like scores or stock prices.
Click to reveal answer
intermediate
What is a downside of polling?
Polling can use more network and battery because it asks the server often, even if data hasn’t changed.
Click to reveal answer
What does refetching do in GraphQL?
✗ Incorrect
Refetching means manually asking the server again for fresh data.
Polling in GraphQL is best described as:
✗ Incorrect
Polling automatically requests data repeatedly at fixed time intervals.
Which is a common use case for polling?
✗ Incorrect
Polling is useful for live data that changes often, like sports scores.
What is a disadvantage of polling?
✗ Incorrect
Polling can waste network and battery by requesting data even when it hasn’t changed.
How can you stop polling in a GraphQL client?
✗ Incorrect
Stopping polling usually means setting the interval to zero or calling a stop function.
Explain in your own words what refetching and polling mean in GraphQL and when you might use each.
Think about how often you want fresh data and whether you want to ask manually or automatically.
You got /4 concepts.
Describe one advantage and one disadvantage of using polling in a GraphQL application.
Consider what polling does and its impact on resources.
You got /2 concepts.