6

I try to update a field named "Type" in indexedDB with Dexie

    var db = new Dexie("Commande");

    db.version(1).stores({
    commande: "++id,idClient,nomClient,idInterne,statut,Type"
    }); 

    db.commande.where("id").equals(getId).modify({Type: "Multi"});

I try this also :

db.commande.where("id").equals(getId).modify(function(value) {
this.value = new commande({Type: "Multi"});
});

And also that :

db.commande.update(getId, {Type: "Multi"});

My field "Type" is never updated :(

Someone can help me about that ?

Image Table details

Nilanka Manoj
  • 3,527
  • 4
  • 17
  • 48
Xavier Sky
  • 551
  • 1
  • 5
  • 7

0 Answers0