Understanding Fetch Policies

GraphQL clients such as Apollo Client provide different strategies for deciding whether to read from the cache, contact the server, or combine both approaches.

A cache-first strategy prefers existing cached data. A network-only strategy always requests fresh data. A cache-and-network strategy can display cached data immediately and then update it with a network response.

The correct policy depends on the freshness requirements of the specific data.