This commit is contained in:
Your Name committed 2026-06-28 05:52:46 -04:00
1 parent 5fac4524c8
commit e1d793ce37
69 files changed
+1892 -610

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
import { PrismaClient } from '@prisma/client';
const prisma = new PrismaClient();
prisma.product.findMany({
include: {
category: { include: { translations: true } },
brand: true,
translations: true,
variants: {
include: {
bomItems: { include: { rawMaterial: true } }
},
orderBy: { price: "asc" }
},
images: { orderBy: { order: "asc" } },
}
}).then(console.log).catch(console.error).finally(() => prisma.$disconnect());
//# sourceMappingURL=scratch_test.js.map