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


#1

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


#2

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