Myat Min Aung [WE]
Myat Min Aung [WE]
PPrisma
Created by Myat Min Aung [WE] on 11/13/2024 in #help-and-questions
Omit type for creating
However, I can use delete user.password. Is there a way to omit the password when creating a new user?
.tsx
async create(dto: CreateUserDto) {
const user = await this.prismaService.instance.user.create({
data: {
...dto,
},
});

return user;
}
.tsx
async create(dto: CreateUserDto) {
const user = await this.prismaService.instance.user.create({
data: {
...dto,
},
});

return user;
}
5 replies