No related Data in Result via "strapi.entityService.findOne(...)" etc. 🤔

System Information
  • Strapi Version: 4
  • Database: Postgres
  • Node Version: v16.20.2
  • NPM Version: 8.19.4
  • Yarn Version:

Hey guys,

I want to get related data via await strapi.entityService.findOne(…) but it doesn’t work.
This question is probably easy to answer, but I don’t have much experience with v4.
Can anyone give me a hint?

Thanks in advance!

image

image

This article explains how populating works

Also if you don’t want to write it by hand you can use the following plugin but you need to enable the auto-populate setting. and then populating notting.

or a 3rd option is

Note that this will lead to performance issues in production since it populates a lot more invisible things you can’t see.

1 Like

Thank you! I’m just at it. :+1:

Very good links, the problem is solved and I learned a lot! Many thanks! :+1: :beer: