'Hashnode API with GraphQL API resulting in error

I am trying to call the hasnode API to get blogs as the response, the body is in GraphQL. But I get this error in the Network Tab 'POST body missing. Did you forget use body-parser middleware?' `

let query = `
    {
      user(username: "singhmona") {
        publication {
          posts{
            slug
            title
            brief
            coverImage
          }
        }
      }
    }
  `;

  let body = JSON.stringify({
            query
        });
   axios
      .post('https://api.hashnode.com/',
      body,
      {
        'content-type': 'application/json',
      })
      .then(response => {
        this.info = response;
        console.log(response);}
        )

`



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source