title: How to use Apollo Server 2 with Firebase Functions
body: <p>I was studying how to use Apollo GraphQL server with Firebase functions and I found this <a href="https://codeburst.io/graphql-server-on-cloud-functions-for-firebase-ae97441399c0" rel="nofollow noreferrer">link</a>, which uses Apollo Server 1. I'm trying to use Apollo Server 2, but it doesn't have</p>
  
  <pre><code>import { graphqlExpress, graphiqlExpress } from 'apollo-server-express';
  </code></pre>
  
  <p>that the author used in the article.</p>
  
  <p>I've tried to implement in this way:</p>
  
  <pre><code>import { https } from "firebase-functions"
  import { ApolloServer, gql } from 'apollo-server-express';
  import * as express from 'express';
  
  const app = express();
  
  const graphQLServer = new ApolloServer({ typeDefs, resolvers });
  
  graphQLServer.applyMiddleware({ app });
  
  export const api = https.onRequest(app);
  </code></pre>
  
  <p>with <code>"apollo-server-express": "^2.0.0"</code> but without success, because I always get <code>Cannot GET /</code> every time I follow function link.</p>
  
  <p>So, is there a way to implement Apollo Server 2 with Firebase/Google Functions?</p>