listAndCount - Store Module Reference
This documentation provides a reference to the listAndCount
method. This belongs to the Store Module.
This method retrieves a paginated list of stores along with the total count of available stores satisfying the provided filters.
Example
To retrieve a list of stores using their IDs:
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
FilterableStorePropsThe filters to apply on the retrieved stores.
filters
FilterableStorePropsconfig
FindConfig<StoreDTO>The configurations determining how the store is retrieved. Its properties, such as select
or relations
, accept the
attributes or relations associated with a store.
config
FindConfig<StoreDTO>select
or relations
, accept the
attributes or relations associated with a store.Returns
The list of stores along with their total count.
Was this section helpful?