`.save()` throws error when provided with all fields
Hi. I just updated my package from v2 to v6 to make use of async but when I tried to use tableName.save()
it throws an error Must provide an object with all fields being modified and the primary key if updating
I already provided all the field and the primary key as well the other method works fine like find
, findOne
, and insert
.
const record = await db.users.save({ id: 1, first_name: 'test', last_name: 'test', timestamp: new Date() });