Version
Strapi:v4.10.5 npm:v6.14.8
Content
Question about Strapi.
I created a many-to-many relationship using the following two collections:
- employee_career_histories
- employee_statuses
When I created this relationship, an intermediate table called "employee_career_histories_employee_statuses_links" was automatically generated. However, there is no corresponding collection for this intermediate table, so there are no API endpoints available.
The data in this intermediate table consists of foreign keys, so there is no data in the two original tables mentioned above.
Please provide guidance on how to retrieve data from the intermediate table using the API or how to create a custom endpoint.
What I've tried
- I attempted to retrieve data using the populate feature, but it did not work.
- I found information about creating custom endpoints, but I couldn't find the "routes.json" file in my Strapi project.