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, {
|
.belongsTo(() => Product, {
|
||||||
mappedBy: "variants",
|
mappedBy: "variants",
|
||||||
})
|
})
|
||||||
|
.searchable()
|
||||||
.nullable(),
|
.nullable(),
|
||||||
options: model.manyToMany(() => ProductOptionValue, {
|
options: model.manyToMany(() => ProductOptionValue, {
|
||||||
pivotTable: "product_variant_option",
|
pivotTable: "product_variant_option",
|
||||||
|
|||||||
Reference in New Issue
Block a user