Reputation: 368
I created an API using strapi, and everything work fine until now. A have an "Event" and a "Stand" collection, I set up things in order to have multiple stands in event.
I use Insomnia
to try the API and fetch the data, and when I fetch the events, I dont have any clue of the relations.
Everywhere people say relations should appears here, so, if you have any ideas, thank you.
Upvotes: 16
Views: 18606
Reputation: 480
Strapi won't retrieve by default the relations. You must specify in your API call that you want to retrieve everything including the relationships.
For that, at the end of your GET request add : ?populate=*
request: http://localhost:1337/api/events?populate=*
You have more options here is you want to see deeper or not :
Upvotes: 41