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 ?