Skip to main content

Class: CollectionsResource

Hierarchy

  • Copy to Clipboard

    Copy to Clipboard

Methods

list

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

Copy to Clipboard

Retrieves a list of collections

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/collections.ts:28


retrieve

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

Copy to Clipboard

Retrieves a single collection

Parameters

NameTypeDescription
Copy to ClipboardCopy to Clipboardid of the collection
Copy to ClipboardCopy to Clipboard<Copy to Clipboard, Copy to Clipboard>

Returns

Copy to Clipboard<Copy to Clipboard>

Defined in

medusa-js/src/resources/collections.ts:17