`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
      })
    );
posta 9 mesi fa120 visualizzazioni
Nessuna risposta

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande