A
Alokai12mo ago
ALI

Response Filter

Hi, I have an app integrated with magento 2. I am trying to query products based on category and using one of the api provided in the documentation.
categoryList({})
categoryList({})
for the purpose. but it gives me all the products and not the ones from a single category. Can anyone suggest any better approach? below are the screenshots of response along with my code.
const prod = await useAsyncData(() => useSdk().magento.categoryList({}));
console.log('Category Search: >> ', prod);
const prod = await useAsyncData(() => useSdk().magento.categoryList({}));
console.log('Category Search: >> ', prod);
No description
No description
2 Replies
skirianov
skirianov12mo ago
Vue Storefront Docs
Categorylist | Vue Storefront Docs
Frontend as a Service for Composable Commerce
ALI
ALI12mo ago
its empty object
Want results from more Discord servers?
Add your server