apollo-link-state cache.writedata results in Missing field warning : <p>When I call a mutation on my client I get the following warning:</p>

<blockquote>
  <p>writeToStore.js:111 Missing field updateLocale in {}</p>
</blockquote>

<p>This is my stateLink:</p>

<pre><code>const stateLink = withClientState({
  cache,
  resolvers: {
    Mutation: {
      updateLocale: (root, { locale }, context) =&gt; {
        context.cache.writeData({
          data: {
            language: {
              __typename: 'Language',
              locale,
            },
          },
        });
      },
    },
  },
  defaults: {
    language: {
      __typename: 'Language',
      locale: 'nl',
    },
  },
});
</code></pre>

<p>And this is my component:</p>

<pre><code>export default graphql(gql`
  mutation updateLocale($locale: String) {
    updateLocale(locale: $locale) @client
  }
`, {
    props: ({ mutate }) =&gt; ({
      updateLocale: locale =&gt; mutate({
        variables: { locale },
      }),
    }),
  })(LanguagePicker);
</code></pre>

<p>What am I missing?</p>
