Does Prisma generate types for queries than includ...
# orm-help
j
Does Prisma generate types for queries than includes another type? For instance, my model has a
Product
and
Category
model which are linked as below;
Copy code
model Category {
  id            Int        @id
  name          String
  products      Product[]  @relation(references: [id])
  image         String?
}

model Product {
  id               Int        @id
  name             String
  price            Float
  image            String
  brand            String
  categories       Category[]  @relation(references: [id])
  currentInventory Int
  description      String
}