NestJS - Database with TypeORM
Given these NestJS TypeORM entities:
What type will
class Category {
@OneToMany(() => Product, product => product.category)
products: Product[];
}
class Product {
@ManyToOne(() => Category, category => category.products)
category: Category;
}What type will
category.products have when loaded?