fix(docs): update extend repository (#6140)
- Issue ticket https://github.com/medusajs/medusa/issues/6139 - Update document how to extend repository
This commit is contained in:
1 parent
f72340ad87
commit
b61acf9312
1 file changed
+1
-1
@@ -54,7 +54,7 @@ export const ProductRepository = dataSource
|
|||||||
.extend({
|
.extend({
|
||||||
// it is important to spread the existing repository here.
|
// it is important to spread the existing repository here.
|
||||||
// Otherwise you will end up losing core properties
|
// Otherwise you will end up losing core properties
|
||||||
...MedusaProductRepository,
|
...Object.assign(MedusaProductRepository, { target: Product }),
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Here you can create your custom function
|
* Here you can create your custom function
|
||||||
|
|||||||
Reference in new issue
Block a user