Postgresql – How do I create a new database record that has a many-to-one relation?
I'm learning NestJS with TypeORM (PostgreSQL) and trying to create a library website for practice. Here are my entities, Book and Author. An author can have multiple books, but each book can belong only to one author. import { Author…