accessing graphql vue from browser code example

Example: vuejs request payload for graphql

methods: {  /* ... */  async updateAttackDamage () {    const res = await axios.post('http://localhost:4000/graphql', {      query: `        mutation UpdateAttackDamage(          $championName: String!,  $attackDamage: Float) {          updateAttackDamage(name: $championName, attackDamage: $attackDamage) {            name            attackDamage          }        }`,        variables: {          championName: this.name,          attackDamage: this.attack        }    })    this.updatedChampion = res.data.data.updateAttackDamage  }}