Skip to main content
Skip to main content

retrieve - Currency Module Reference

This documentation provides a reference to the retrieve method. This belongs to the Currency Module.

This method retrieves a currency by its code and and optionally based on the provided configurations.

Example

const currency = await currencyModuleService.retrieve("usd")

Parameters

codestringRequired
The code of the currency to retrieve.
The configurations determining how the currency is retrieved. Its properties, such as select or relations, accept the attributes or relations associated with a currency.
sharedContextContext
A context used to share resources, such as transaction manager, between the application and the module.

Returns

PromisePromise<CurrencyDTO>Required
The retrieved currency.
Was this section helpful?