title: GET query missing: Implementing GraphQL Using Apollo On an Express Server
body: <p>I'm following the tutorial here: <a href="https://scotch.io/tutorials/implementing-graphql-using-apollo-on-an-express-server" rel="noreferrer">Implementing GraphQL Using Apollo On an Express Server</a> and I'm getting the error <strong>GET query missing</strong> in the browser at <a href="http://localhost:7700/graphql" rel="noreferrer">http://localhost:7700/graphql</a>.</p>
  
  <p>First I typed all the code myself. When I encountered the error, I downloaded the code from <a href="https://github.com/kimobrian/GraphQL-Express" rel="noreferrer">GitHub: kimobrian/GraphQL-Express: An Express Server implemented using GraphQL</a> to eliminate the possibility that I had made a mistake. However, I'm still getting the same error.</p>
  
  <p>I presume it is better to provide the link to the repo rather than paste the code here because I'm using the same code from the repo. Also, I am not sure which file might contain the problem.</p>
  
  <pre><code>$ npm start
  
  &gt; tutorial-server@1.0.0 start kimobrian/GraphQL-Express.git
  &gt; nodemon ./server.js --exec babel-node -e js
  
  [nodemon] 1.18.9
  [nodemon] to restart at any time, enter `rs`
  [nodemon] watching: *.*
  [nodemon] starting `babel-node ./server.js`
  GraphQL Server is now running on http://localhost:7700
  </code></pre>
  
  <p>The error is <strong>GET query missing</strong> in the browser at <a href="http://localhost:7700/graphql" rel="noreferrer">http://localhost:7700/graphql</a>. It's the same in Firefox and Chromium.</p>
  
  <p>Update: The only question I find with relevant information is here: <a href="https://stackoverflow.com/questions/42377255/nodejs-with-graphql">nodejs with Graphql</a>. The suggested solution is  </p>
  
  <pre><code>server.use('/graphiql', graphiqlExpress({
    endpointURL: '/graphql',
  }));
  </code></pre>
  
  <p>However, that's exactly the code I have already (from the tutorial). Here is my entire <code>server.js</code>:</p>
  
  <pre><code>import express from 'express';
  import cors from 'cors';
  
  import {
      graphqlExpress,
      graphiqlExpress,
  } from 'graphql-server-express';
  
  import bodyParser from 'body-parser';
  
  import { schema } from './src/schema';
  
  const PORT = 7700;
  const server = express();
  server.use('*', cors({ origin: 'http://localhost:7800' }));
  
  server.use('/graphql', bodyParser.json(), graphqlExpress({
      schema
  }));
  
  server.use('/graphiql', graphiqlExpress({
      endpointURL: '/graphql'
  }));
  
  server.listen(PORT, () =&gt;
      console.log(`GraphQL Server is now running on http://localhost:${PORT}`)
  );
  </code></pre>