Query Engine API: Populating not working for realtions which has other realations

System Information
  • Strapi Version: 4
  • Operating System: mac os
  • Database: postgres
  • Node Version: v16.14.2
  • NPM Version: 8.5.0
  • Yarn Version: 1.22.19

I do this:

    const entry = await strapi.db
          .query("api::foo.foo")
          .findOne({
            where: queryParams.where,
            populate: true,
          });

my foo collection has relation - bar and my bar collection has other relations . When I do query engine with populate:true it populates bar relation but not relations inside bar…

Use nested populate to populate the nested relation. See:

btw. EntityService is preferred over Query Engine, but the populate params are almost identical :slight_smile:

1 Like