Skip to content
Advertisement

EntityColumnNotFound: No entity column “authors” was found. many to many relations on TypeORM and NestJS

I am trying to get the books per user from the get request I have the following problem, it turns out that I am doing a many-to-many relationship but it indicates that the authors entity was not found, I have already searched the TypeORM documentation but I cannot find anything, this is my code:

book.controller.ts

book.service.ts

book.entity.ts

This is the user entity where I make the many to many relation user.entity.ts

If you could help me find the error it would be very helpful Thanks

Advertisement

Answer

You can use queryBuilder to get the books:

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement