Closed incompletude closed 4 years ago
Hi,
openrecord currently only supports inserts the autogenerated primary key via SQL returning
.
You could use the afterCreate
or afterSave
hook to reload fields.
If you are interested, please open a PR for this.
i think a new boolean attribute option (e.g. readAfterWrite
) would be nice.
I have a simple model:
Then I'm using:
The postgres table denifition is:
The result is:
The slug field is null, when it is created on the database. If I query the database again, the result is right: