We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a19e9d2 commit a551a42Copy full SHA for a551a42
packages/headless-components/stores/src/services/products-list-service.ts
@@ -74,8 +74,10 @@ export type ProductsListServiceConfig = {
74
* export const getServerSideProps: GetServerSideProps<ProductsPageProps> = async () => {
75
* const searchOptions = {
76
* cursorPaging: { limit: 12 },
77
- * filter: {},
78
- * sort: [{ fieldName: 'name', order: 'ASC' }]
+ * filter: {
+ * 'allCategoriesInfo.categories': { $matchItems: [{ _id: { $in: [category._id] } }] }
79
+ * },
80
+ * sort: [{ fieldName: 'name' as const, order: 'ASC' as const }]
81
* };
82
*
83
* const productsConfig = await loadProductsListServiceConfig(searchOptions);
0 commit comments