@@ -89,7 +89,7 @@ import { IsType } from "../../../../utils/validators/is-type"
|
||||
* source: |
|
||||
* import Medusa from "@medusajs/medusa-js"
|
||||
* const medusa = new Medusa({ baseUrl: MEDUSA_BACKEND_URL, maxRetries: 3 })
|
||||
* medusa.store.productTags.list()
|
||||
* medusa.productTags.list()
|
||||
* .then(({ product_tags }) => {
|
||||
* console.log(product_tags.length);
|
||||
* });
|
||||
|
||||
@@ -89,7 +89,7 @@ import ProductTypeService from "../../../../services/product-type"
|
||||
* import Medusa from "@medusajs/medusa-js"
|
||||
* const medusa = new Medusa({ baseUrl: MEDUSA_BACKEND_URL, maxRetries: 3 })
|
||||
* // must be previously logged in or use api token
|
||||
* medusa.store.productTypes.list()
|
||||
* medusa.productTypes.list()
|
||||
* .then(({ product_types }) => {
|
||||
* console.log(product_types.length);
|
||||
* });
|
||||
|
||||
Reference in New Issue
Block a user