title: GraphQL post request in axios
body: <p>I have a problem with GraphQL. I want to send axios.post request to my server. I can do it in postman:</p>
  
  <pre><code>{
      "query":"mutation{updateUserCity(userID: 2, city:\"test\"){id name age city knowledge{language frameworks}}} "
  }
  </code></pre>
  
  <p>and in graphiql: </p>
  
  <pre><code>mutation {
    updateUserCity(userID: 2, city: "test") {
      id
      name
      age
      city
      knowledge {
        language
        frameworks
      }
    }
  }
  </code></pre>
  
  <p>but can't do it in my code:(( here is my code snippet:</p>
  
  <pre><code>const data = await axios.post(API_URL, {
    query: mutation updateUserCity(${ id }: Int!, ${ city }: String!) {
      updateUserCity(userID: ${ id }, city: ${ city }){
        id
        name
        age
        city
        knowledge{
          language
          frameworks
        }
      }
    }
  }, {
      headers: {
        'Content-Type': 'application/json'
      }
    })
  </code></pre>
  
  <p>what's wrong in my code?</p>