For now what I am doing is extending like so; ```i...
# orm-help
j
For now what I am doing is extending like so;
Copy code
interface inventoryDataType extends Product {
  categories: Category[]
}
r
@Joey 👋 You need to use the payload types provided by Prisma. So your type would be:
Copy code
type ProductWithCategories = Prisma.ProductGetPayload<{
  include: { categories: true }
}>
j
@Ryan thanks! This is so neat 🙂
💯 1