Skip to content

Explain how to fetch nested collection in EntriesQuery  #580

Open
@bidoubiwa

Description

@bidoubiwa

Using the entriesQuery parameter, you can add a field named populate that helps you fetch nested collection.

See example

module.exports = {
meilisearch: {
config: {
restaurant: {
entriesQuery: {
populate: ['repeatableComponent.categories', 'categories'],
},
},
},
},
}

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 use populate to fetch nested collections (see #506)

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationgood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions