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:
Vinh Nguyen
2024-01-22 22:21:30 +07:00
committed by GitHub
parent f72340ad87
commit b61acf9312

View File

@@ -54,7 +54,7 @@ export const ProductRepository = dataSource
.extend({
// it is important to spread the existing repository here.
// Otherwise you will end up losing core properties
...MedusaProductRepository,
...Object.assign(MedusaProductRepository, { target: Product }),
/**
* Here you can create your custom function