System Information
- Strapi Version: 4
- Operating System: OS
- Database: Postgres
- Node Version: 16
- NPM Version:
- Yarn Version:
Hi, I’m trying to get products filtered by categories.
Categories is another table with a relation many to many in my product table.
I would like to my “categories” filed in my product response populate with the categories datas.
I’m trying to do that but it’s not working :
await strapi.entityService.findMany(‘api::product.product’, {
where: {
categories: {
value: ‘accessoires’
}
},
populate: [‘categories’]
})
I tried a lot of thing not working.
Any help for this ?