Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想更新某个用户的用户名、地址、联系人#,而不更新对象/记录的密码和其他属性。
您可以通过以下方式简单地做到这一点: -
this.userRepository.updateById(id, member);
其中 member 是成员类型对象。
const member: Partial<Member> = { name: 'Test Name' }