The column validation is too strict in what can go in and out.
Out:
await SomeModel.query({
columns: 'COUNT(*)',
});
This returns EMPTY results, because obviously there is no known column name, but if there's an "id" column on the model, this works
await SomeModel.query({
columns: 'COUNT(*) as id',
});
In
If there are data missing on save, they are added anyways, but usually during update, you just want to update some columns, I would expect from .save() when primary key is present, just update columns available.
The column validation is too strict in what can go in and out.
Out:
This returns EMPTY results, because obviously there is no known column name, but if there's an "id" column on the model, this works
In
If there are data missing on save, they are added anyways, but usually during update, you just want to update some columns, I would expect from
.save()when primary key is present, just update columns available.