System Information
- Strapi Version: 3.4.2
- Operating System: Windows 10 Pro - 20H2
- Database: MySql
- Node Version: 12.19.0
- NPM Version: 6.14.9
- Yarn Version: 1.22.5
I have the following code:
find(params, populate) {
return strapi
.query("menu")
.find(params, [
"categories",
"categories.plates",
"categories.plates.image",
"categories.subcategories",
"categories.subcategories.plates",
"categories.subcategories.plates.image",
]);
},
in which categories
, subcategories
and plates
are all models.
And plates
also has a repeatable component called variants
:
"variants": {
"type": "component",
"repeatable": true,
"component": "menu.options"
},
I tried putting categories.plates.variants
in the find
and findOne
methods and it didn’t work. Am I missing something? I know there’s a lot of nested stuff in it and I’m open to suggestions.
Thanks