feat(product): search variants by product properties (#12391)
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user