title: Next.js using apollo client cache in getServerSideProps
body: <p>I'm using Next.js with apollo client. I need to create a seamless workflow between server and client side. In my ssr page, I run a query in getServerSideProps and send the created apollo cache to browser like below;</p>
  <pre><code>export async function getServerSideProps(context: GetServerSidePropsContext) {
    const apolloClient = initializeApollo();
  
    await apolloClient.query({
      query: CitiesQuery,
      variables: {
        name: cityParamVar(),
      },
    });
  
    return {
      props: {
        initialApolloState: apolloClient.cache.extract(),
      },
    };
  }
  </code></pre>
  <p>On the client side, I have my apollo cache already filled with query data, wonderful!.
  Then, I run a second query on client side, so apollo cache will have my second query results as well.
  Then, I navigate to Home page and then come back to my page again. Of course getServerSideProps  will run again. Here, in getServerSideProps  function, is it possible to obtain the same apollo cached filled with my second query results, that was run on client side?</p>
  <p>Can we create a totally seamless workflow between client &amp; server?</p>
  <p>I saw samples just run <strong>const apolloClient = initializeApollo()</strong> in getServerSideProps. So, I won't have the updated cache! Am I missing something?</p>