NESTJS框架从零到一搭建node服务 <操作数据库增删改查>

67 阅读1分钟

1.创建实体类也就是表中的字段

image.png

2.在service中注入类

image.png

3.增删改查数据库

image.png