listAndCountCountries - Region Module Reference
This documentation provides a reference to the listAndCountCountries
method. This belongs to the Region Module.
This method retrieves a paginated list of countries along with the total count of available countries satisfying the provided filters.
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
filters
FilterableRegionCountryPropsThe filters to apply on the retrieved countries.
filters
FilterableRegionCountryPropsconfig
FindConfig<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.
config
FindConfig<RegionCountryDTO>select
or relations
, accept the
attributes or relations associated with a country.Returns
The list of countries along with their total count.
Was this section helpful?