title: Graphql: Must provide query string
body: <p>I have a simple express graphql server:</p>
  
  <pre><code>const schema = require('./schema');
  const express = require('express');
  const graphqlHTTP = require('express-graphql');
  const cors = require('cors')
  const bodyParser = require('body-parser');
  
  
  const app = express();
  app.use(cors());
  app.use(bodyParser.urlencoded({ extended: true }));
  app.use(bodyParser.json());
  
  app.use('/graphql', graphqlHTTP(req =&gt; {
    return ({
    schema,
    pretty: true,
    })
  }));
  
  const server = app.listen(9000, err =&gt; {
    if (err) { return err; }
    console.log(`GraphQL server running on http://localhost:${9000}/graphql`);
  });
  </code></pre>
  
  <p>And my request looks like:</p>
  
  <p><a href="https://i.stack.imgur.com/yjzer.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yjzer.png" alt="enter image description here"></a></p>
  
  <p><strong>Any help?</strong></p>
  
  <p>(Please don't close it as duplicate because the other post does not provide enough info on how the user solved it)</p>