Can I populate relation or nested components when using "create, update" services?

System Information
  • Strapi Version: 4.0.4
  • Operating System: Mac, docker
  • Database: postragsql
  • Node Version: 16
  • NPM Version: 8.1
  • Yarn Version: 1.22.17

Hi I am trying to populate for component or relation data while using create or update service, I know I can populate them with findMany, but I want to reduce requests to database , so is that possible ?

I tried something like that, but it didn’t work:

const response = await super
          .create(ctx, { populate: { relationName: true } })
          .catch((err) => {
            ctx.internalServerError(err);
          });

Thanks for the help

I try to do the same thing, did you find a solution?

I was trying to achieve the same today, what I’ve come to make it work was based on this approach of the documentation:
https://docs.strapi.io/developer-docs/latest/developer-resources/database-apis-reference/entity-service/components-dynamic-zones.html#update

Yes I found this after words and solved the problem