Skip to content
This repository has been archived by the owner on Jul 10, 2019. It is now read-only.

When calling execute directly on link, resolver cache argument is undefined #338

Open
jide opened this issue Jan 11, 2019 · 0 comments
Open

Comments

@jide
Copy link

jide commented Jan 11, 2019

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.
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant