I have a bit of code:
db.files.update(id, {name: name}).then(function(updated) {
// Other stuff
}
When it runs, it replaces the entire record with
{
name: "File name"
}
According to the docs, this is what Table.put() should do, not Table.update().
Am I doing something wrong, or is this a problem with Dexie?