listCountries - Region Module Reference
This documentation provides a reference to the listCountries method. This belongs to the Region Module.
This method retrieves a paginated list of countries based on optional filters and configuration.
Example
To retrieve a list of countries using their IDs:
To specify relations that should be retrieved within the countries:
By default, only the first 15 records are retrieved. You can control pagination by specifying the skip and take properties of the config parameter:
Parameters
filtersFilterableRegionCountryPropsThe filters to apply on the retrieved countries.
filtersFilterableRegionCountryPropsconfigFindConfig<RegionCountryDTO>The configurations determining how the country is retrieved. Its properties, such as select or relations, accept the
attributes or relations associated with a country.
configFindConfig<RegionCountryDTO>select or relations, accept the
attributes or relations associated with a country.Returns
The list of countries.
Was this section helpful?