title: GraphQL Endpoint returns 400
body: <p>I have a django app built with graphene and I have a problem running a simple <code>POST</code> query for the <code>GraphQL</code> endpoint, it keeps returning a <code>400 Bad request syntax</code>. </p>
  
  <p><a href="https://i.stack.imgur.com/Bbakf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Bbakf.png" alt="enter image description here"></a></p>
  
  <p>but it should work since I don't have any problems running the query from the endpoint <a href="http://localhost:8000/graphql-dev" rel="nofollow noreferrer">http://localhost:8000/graphql-dev</a></p>
  
  <p><a href="https://i.stack.imgur.com/tu8XB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tu8XB.png" alt="enter image description here"></a></p>
  
  <p>and I can't see any issues in the way I send the postman request. 
  I looked online for suitable solutions but couldn't find any that would help. </p>
  
  <p>Any help/tips would be greatly appreciated.</p>
  
  <p>EDIT: 
  I still didn't manage to see why I'm having this issue with postman, but here are some observations:</p>
  
  <ol>
  <li><p>first, i changed the request to GET (since in <code>graphql</code>, <code>query</code> is for <code>GET</code> and <code>mutation</code> for <code>POST</code> - sorry, I missed that)</p></li>
  <li><p>I tried the same request with postman (which didn't work) and with insomnia (which did)</p>
  
  <ul>
  <li><p>with postman 
  <a href="https://i.stack.imgur.com/1VrdW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1VrdW.png" alt="enter image description here"></a></p></li>
  <li><p>with insomnia 
  <a href="https://i.stack.imgur.com/KlCO7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KlCO7.png" alt="enter image description here"></a></p></li>
  </ul></li>
  </ol>
  
  <p>What's weird is that if i check my django console the requests look the same.</p>
  
  <p><a href="https://i.stack.imgur.com/rgX4e.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rgX4e.png" alt="enter image description here"></a></p>
  
  <p>EDIT2: okay, I figured it out...removing the <code>Content-Type</code> <code>application/json</code> did the trick. Now it works with postman as well. </p>