Replies: 1 comment 7 replies
-
I was searching for something like this a few days already. Usage example. P.S. If we already have such feature - sorry. Please point me with url to doc. Thanks. |
Beta Was this translation helpful? Give feedback.
-
Does a feature currently exist which allows you to essentially mark a column as not update-able? In other words, those fields are excluded from update operations whenever the save method on the model is called.
Eg:
`class Foo extends BaseModel {
@column({ isPrimary: true })
public id: number
@column()
public field1: string;
@column({updateable: false})
public field2: string;
}
`
In the example above, field2 will always be ignored when updating the table.
Beta Was this translation helpful? Give feedback.
All reactions