skip to Main Content

Postgresql – FindOne function not working with Postgres

company.service.ts:` async get(id: FindOneOptions<Company>): Promise<Company | null>{ console.log(id) return await this.companyRespository.findOne(id); } company.controller.ts: @Get(':id') findOneCompany(@Param('id') id: FindOneOptions<Company>){ return this.companyService.get(id); } I have written the following code but whenever I try to get by FindOne my console says that "You must…

VIEW QUESTION
Back To Top
Search