AWS Appsync mutation not updating

Viewed 13

I'm really new to aws and graphql. I'm trying to update the "score" of my database. I'm able to set a value for "score" when I create a new mutation. However, when I try to update a current mutation the value of "score" doesn't change.

    mutation update {
  updateScore(input: {id: "3c8571ad-817a-4c7f-a2a4-95b1e664f105", score: 0}) {
    id
    score
  }
}

mutation create {
  createScore(input: {score: 1}) {
    id
    score
  }
}

When query mutation update I'm still getting a score of 1

0 Answers
Related