Is there a way to define what root level objects are populated once an entity is created?
In the documentation for entity service api, the following is stated for create request-
fields |
Attributes to return | String[] |
---|---|---|
populate |
Relations, components and dynamic zones to populate | PopulateParameter |
data |
Input data | Object |
#
But no examples are given on how to return specific objects at different levels. For other requests, these examples are clearly defined. I want to retrieve components and a single relation.
System Information
- Strapi Version: 4.3.3
- Operating System: Mac Os 12.5
- Database: Postgres 13
- Node Version: v14.15.5
- NPM Version: 6.14.11
- Yarn Version: 1.22.18