How to model relationship between entities where one entity can be one of many types?


let’s say i am creating a hackernews clone

there is a User and two kinds of post

  1. Link post
  2. Normal Post (Blog post)

how do I model the relationship between user and posts in sdl and query them using prisma client


This topic was automatically closed 45 days after the last reply. New replies are no longer allowed.