APOLLO CLIENT / CACHE AFTER AN ERROR
Why does the next query
have no error?
An inventory query returned partial data and an error. The next cache-first query had no error and made zero HTTP requests. The first response's null was still there.
Real local Apollo gateways produce healthy and failed lamp lookups. Each case keeps one client and cache across successive queries. This is a reader for saved observations, not a React UI experiment.
Synthetic products · Apollo Client 4.3.3 / GraphQL 16.14.2 · Recorded execution
The failed lookup, then the next query
Checking the recording…errorPolicy controls errors and partial data. fetchPolicy controls cache or network reads. A stored null is a field value, not a cache miss.
The comparison appears after the recording is verified.
Successive client.query calls keep the same client and cache. The failure server remains selected.
02 · Next cache-first query
HTTP counts cover client → gateway calls, not subgraph requests.
Inspect this case's complete observations
USING THE NEXT RESULT
No error is not a new confirmation.
all can store a partial response; none can leave an earlier value in place. Neither makes a later cache hit a new inventory confirmation.
no-cache does not store that response. A subsequent cache-first request can still contact the server, receive the same error and store partial data.
These observations concern promise-based client.query, not React rendering. Null does not mean sold out. The previous quantity 3 was not checked against current inventory.
React follow-up: what remains on screen after a failed recheck? →
Where the displayed values come from
The page verifies the fixed recording and projects its actual results and cache values. This does not authenticate the recording host.