Skip to content
This repository was archived by the owner on Jul 10, 2019. It is now read-only.
This repository was 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

@jide

Description

@jide

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.
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions