-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Explain how to fetch nested collection in EntriesQuery
#580
Comments
Does this entriesQuery populate config also work for dynamic zone components in Strapi so you can search across text content inside dynamic zone components? |
Hey @simon-online, I'm sorry but you'll need to ask that to strapi. I'm just passing the configuration directly to strapi's ORM without any changes |
Ok, so as long as the configuration is valid then Strapi will return the content for a dynamic zone. However it sounds like strapi-plugin-meilisearch currently hasn't been tested with dynamic zone components so there could be an issue or it may just work if the data is in the same format as a repeatable component. |
Hey @simon-online, yes, it was not tested, unfortunately. |
Using the
entriesQuery
parameter, you can add a field namedpopulate
that helps you fetch nested collection.See example
strapi-plugin-meilisearch/resources/entries-query/populate.js
Lines 1 to 11 in 85ca7d3
See doc in Strapi on how populate works.
It would be nice to add some information in the Readme about
populate
for users not aware that they need to usepopulate
to fetch nested collections (see #506)The text was updated successfully, but these errors were encountered: