When calling execute directly on link, resolver cache argument is undefined
jide opened this issue · 0 comments
jide commented
If I try to execute an operation using execute on an apollo link state, resolver has no cache. Why ? :
function testLink = async function() {
const result = await makePromise(
execute(linkState, {
query: SET_VIDEO_STATE,
variables: {
currentTime: 2000
}
})
);
};
// resolver :
setVideoState: (_, variables, { cache, getCacheKey }) => {
// cache is undefined.
}