📣 The forum has moved to GitHub
We’ve switched to GitHub Discussions as the hub for our community. This will improve the experience of collaborating for everyone, sharing what you’re working on, and discussing ideas for how Swell can be improved. Existing threads will remain open, but new posts are disabled.Go to GitHub →
How to get category details for each up_sell product ?
I need to get up_sell products' categories while fetching the given product details. Currently, the given product details object contains a up_sells array with only id and product_id and I'm able to expand the product object also for each upsell by the following query.
But inside the product object for each up_sell item, I'm not able to get its category details and I can't also expand its category by using
expand: [ 'up_sells.product.category']