title: [Network error]: Error: Error writing result to store for query Using Apollo Link State
body: <p>I am using Apollo-link-state to create and update the store for my application. However, I am getting the following error when performing a mutation:</p>
  
  <pre><code>[Network error]: Error: Error writing result to store for query:
   query getLocation {
    location @client {
      coords
      __typename
    }
  }
  
  Cannot read property 'location' of undefined
  </code></pre>
  
  <p>My default store looks like this:</p>
  
  <pre><code>const defaultState = {
     location: {
      __typename: 'Location',
      coords: [36, -87]
    },
  };
  
  export default defaultState;
  </code></pre>
  
  <p>The query I am using in my mutation looks like this:</p>
  
  <pre><code>export const GET_LOCATION = gql`
    query getLocation{
      location @client{
          coords
      }
    }
  `;
  </code></pre>
  
  <p>I'm not seeing what the problem with the query is.</p>