【发布时间】:2020-12-22 06:51:03
【问题描述】:
如果我想部分更新我的用户名,我可以很容易地做到这一点:
await this.repository.save({ id: 1, name: 'john' });
但是当我使用 queryrunner 时,它要求所有字段都存在并抛出 missing following properties from type 'User'
await queryRunner.manager.save({ id: 1, name: 'john' }); // Error: Missing property
【问题讨论】:
标签: typescript nestjs typeorm