How to read Data one object from array of objects from cache.
Opened this issue · 1 comments
AGurindapalli commented
RealSilo commented
You have to use the query within the function instead of the getCacheKey
.
const storyQuery = gql`
query {
story @client {
storyKey1
storyKey2
}
}
`;
const { story } = cache.readQuery({ query: storyQuery });
......