@param

Node.js/Nest.js

[Nest.js] ERROR [ExceptionsHandler] invalid input syntax for type integer

🎯 문제 상황 //Nest.js Controller 코드 @Get('/:id') getRecord(@Param() id:number): Promise { return this.recordsService.getRecordById(id); } //Nest.js service 코드 async getRecordById(id:number): Promise { const record = await this.recordsRepository.findOneBy({id}); if (!record) { throw new NotFoundException(); } return record } Postman을 통해 위의 코드에 Get request를 보내면 "ERROR [ExceptionsHandler] invalid input..

후뿡이
'@param' 태그의 글 목록