`Datastore.save` on updating field is not working

0

I was trying to practice the below copy, but the response returned does not show updated data nor it doesn't update dynamodb

const updatedPost = await DataStore.save(
      Post.copyOf(original, updated => {
        updated.title = newTitle
      })
    );
feita há 9 meses120 visualizações