TypeMORM VersionColumn
/*
* Special column that is automatically set to the entity's
* version (incremental number) each time you call save from
* entity manager or repository. You don't need to write
* a value into this column - it will be automatically set.
*/
@Entity()
export class User {
@VersionColumn()
version: number;
}
Puzzled Puffin