0
0
GraphQLquery~5 mins

Refetching and polling in GraphQL - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
ACreates new data on the server
BAutomatically updates data at intervals
CDeletes old data from the cache
DManually requests fresh data from the server
Polling in GraphQL is best described as:
AA one-time data request
BRepeated data requests at set intervals
CIgnoring server updates
DSending data to the server
Which is a common use case for polling?
AStatic content like a blog post
BInitial app loading
CLive updates like sports scores
DUser login authentication
What is a disadvantage of polling?
AIt can waste resources by asking too often
BIt deletes data accidentally
CIt only works once
DIt never updates data
How can you stop polling in a GraphQL client?
ABy setting polling interval to zero or stopping the timer
BBy refreshing the page
CBy deleting the query
DBy logging out
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.