score:29

Accepted answer

the apollo docs do a poor job of stressing this fact, but when you call readquery to get a previously fetched query from the store, if that query took any variables, you need to pass in those same variables to retrieve it. assuming the id returned by mutation is the fund's id, you should be able to just modify this line:

const data = proxy.readquery({
    query: fundql.fundpagequery,
    variables: { id: createfundmetrics.id },
});

Related Query

More Query from same tag