'Strapi: sub array won't show in API response

I'm new to Strapi and I created an API with Strapi and Postman about authors and courses which has a 'has and belongs to many' relationship with each other.

This is what it looks

This is what the API http://localhost:1331/api/authors response in Postman looks like:

So it doesn't really shows the sub array of courses that the Author has

So it doesn't really shows the sub array of courses that the Author has.

This is what I want it to look like:

enter image description here

Any idea what the problem is? Thanks!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source