feat(product): search variants by product properties (#12391)
This commit is contained in:
1 parent
c4dd805849
commit
0d8af119c5
2 files changed
+6
No files matched your search
@@ -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