API with NestJS #146. Polymorphic associations with PostgreSQL and Prisma
Often, we might have a situation where a single entity, such as a comment, needs to be associated with more than one type of table. For example, the user might be able to comment on articles, photos, and more. One solution would be to create a separate table for each type of comment, such as […]