The correct answer is that I need to add params with type: "string"
ID, it actually had value type: "number"
@Crud({
model: {
type: User
},
params: {
UserID: {
field: 'UserID',
type: 'string',
primary: true
}
}
})
@ApiTags('users')
@Controller('users')
export class UserController implements CrudController<User> {
constructor(public service: UserService) {
}
get base(): CrudController<User> {
return this;
}
}
Original answer found here: https://github.com/nestjsx/crud/issues/240#issuecomment-527350394