Вам необходимо использовать метод post
для отправки вашего запроса / мутации на сервер GraphQL:
axios({
// Of course the url should be where your actual GraphQL server is.
url: 'http://localhost:5000/graphql',
method: 'post',
data: {
query: `
mutation createUser($email: email){
createUser(email: $email) {
email
}
}`,
variables: {
email: "hello@gmail.com"
}
}
}).then((result) => {
console.log(result.data)
});