how to set default value with TypeORM for mongodb

后端 未结 0 420
说谎
说谎 2021-01-31 00:47

What I\'ve tried so far:

First attempt - assign it directly

@Entity("users")
class User extends BaseEntity{

    @ObjectIdColumn()
    id: Object         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题