Skip to content

Commit a551a42

Browse files
yurynixPaveltarno
authored andcommitted
Improve jsdoc example (#103)
1 parent a19e9d2 commit a551a42

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/headless-components/stores/src/services/products-list-service.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,10 @@ export type ProductsListServiceConfig = {
7474
* export const getServerSideProps: GetServerSideProps<ProductsPageProps> = async () => {
7575
* const searchOptions = {
7676
* cursorPaging: { limit: 12 },
77-
* filter: {},
78-
* sort: [{ fieldName: 'name', order: 'ASC' }]
77+
* filter: {
78+
* 'allCategoriesInfo.categories': { $matchItems: [{ _id: { $in: [category._id] } }] }
79+
* },
80+
* sort: [{ fieldName: 'name' as const, order: 'ASC' as const }]
7981
* };
8082
*
8183
* const productsConfig = await loadProductsListServiceConfig(searchOptions);

0 commit comments

Comments
 (0)