Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

typeorm 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;

}
Source by orkhan.gitbook.io #
 
PREVIOUS NEXT
Tagged: #typeorm #versioncolumn
ADD COMMENT
Topic
Name
7+4 =