`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
      })
    );
asked 8 months ago112 views
No Answers

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions