After upgrading Strapi from v3 to v4, the API default response does not return realational data. So we need to add the pouplate parameter when sending requests.
GET /api/articles?populate=*
GET /api/books?populate=author.name,author.address
GET /api/articles?populate[0]=seoData&populate[1]=seoData.sharedImage&populate[2]=seoData.sharedImage.media
0 Comments