feat(product): search variants by product properties (#12391)

This commit is contained in:
Frane Polić authored and GitHub committed 2025-05-07 10:29:14 +00:00
1 parent c4dd805849
commit 0d8af119c5
2 files changed
+6

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
---
"@medusajs/product": patch
---
feat(product): allow variant search by product properties
@@ -25,6 +25,7 @@ const ProductVariant = model
.belongsTo(() => Product, {
mappedBy: "variants",
})
.searchable()
.nullable(),
options: model.manyToMany(() => ProductOptionValue, {
pivotTable: "product_variant_option",