- Strapi Version: 4
- Database: Postgres
- Node Version: v16.20.2
- NPM Version: 8.19.4
- Yarn Version:
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!
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.
Thank you! I’m just at it.
Very good links, the problem is solved and I learned a lot! Many thanks!