title: Apollo: You are calling concat on a terminating link, which will have no effect
body: <p>I am working in Apollo, GraphQL and Nuxtjs project, when setting up Apollo configuration I got this Warning:</p>
  
  <pre><code>link.js:38 Error: You are calling concat on a terminating link, which will have no effect
  at new LinkError (linkUtils.js:41)
  at concat (link.js:38)
  at ApolloLink.webpackJsonp../node_modules/apollo-link/lib/link.js.ApolloLink.concat (link.js:65)
  at link.js:13
  at Array.reduce (&lt;anonymous&gt;)
  at from (link.js:13)
  at createApolloClient (index.js:58)
  at webpackJsonp../.nuxt/apollo-module.js.__webpack_exports__.a (apollo-module.js:66)
  at _callee2$ (index.js:140)
  at tryCatch (runtime.js:62)
  </code></pre>
  
  <p>Here is my code:</p>
  
  <pre class="lang-js prettyprint-override"><code>import { InMemoryCache } from 'apollo-cache-inmemory';
  import { createHttpLink } from 'apollo-link-http';
  import { ApolloLink } from 'apollo-link';
  
  export default ({ store, env  }) =&gt; {
    const httpLink = new createHttpLink({ uri: env.GRAPH_BASE_URL });
  
    // middleware
    const middlewareLink = new ApolloLink((operation, forward) =&gt; {
      const token = store.getters['user/GET_TOKEN'];
  
      if (token) {
        operation.setContext({
          headers: { authorization: `Bearer ${token}` }
        });
      }
  
      return forward(operation);
    });
  
    const link = middlewareLink.concat(httpLink);
  
    return {
      link,
      cache: new InMemoryCache()
    }
  };
  </code></pre>
  
  <p>I Searched on Google for any similar issue, I found this one <a href="https://github.com/Akryum/vue-cli-plugin-apollo/issues/47" rel="noreferrer">https://github.com/Akryum/vue-cli-plugin-apollo/issues/47</a>
  but it did not help me.
  I tried to change:</p>
  
  <pre><code>const link = middlewareLink.concat(httpLink);
  </code></pre>
  
  <p>to: </p>
  
  <pre><code>const link = Apollo.from([middlewareLink, httpLink]);
  </code></pre>
  
  <p>but it still gives me the same warning,
  any help please</p>