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

This commit is contained in:
Frane Polić
2025-05-07 10:29:14 +00:00
committed by GitHub
parent c4dd805849
commit 0d8af119c5
2 changed files with 6 additions and 0 deletions
+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",