Skip to main content

Class: ProductsResource

Hierarchy

  • Copy to Clipboard

    Copy to Clipboard

Properties

variants

variants: Copy to Clipboard

Defined in

medusa-js/src/resources/products.ts:14

Methods

list

list(Copy to Clipboard, Copy to Clipboard): Copy to Clipboard<Copy to Clipboard>

Copy to Clipboard

Retrieves a list of products

Parameters

NameTypeDescription
Copy to ClipboardCopy to Clipboardis optional. Can contain a limit and offset for the returned list
Copy to ClipboardCopy to Clipboard<Copy to Clipboard, Copy to Clipboard>

Returns

Copy to Clipboard<Copy to Clipboard>

Defined in

medusa-js/src/resources/products.ts:50


retrieve

retrieve(Copy to Clipboard, Copy to Clipboard): Copy to Clipboard<Copy to Clipboard>

Copy to Clipboard

Retrieves a single Product

Parameters

NameTypeDescription
Copy to ClipboardCopy to Clipboardis required
Copy to ClipboardCopy to Clipboard<Copy to Clipboard, Copy to Clipboard>

Returns

Copy to Clipboard<Copy to Clipboard>

Defined in

medusa-js/src/resources/products.ts:22


search(Copy to Clipboard, Copy to Clipboard): Copy to Clipboard<Copy to Clipboard>

Copy to Clipboard

Searches for products

Parameters

NameTypeDescription
Copy to ClipboardCopy to Clipboardis required
Copy to ClipboardCopy to Clipboard<Copy to Clipboard, Copy to Clipboard>

Returns

Copy to Clipboard<Copy to Clipboard>

Defined in

medusa-js/src/resources/products.ts:36