The nested include allows you to further enrich your data by requesting more information from a standard include. Might sound difficult, but we assure you, it’s anything but hard. This is how we use nested includes.
Create your request
For example, in our you’ve enriched your request with the participant, and events includes:
But what if we want to know more about the players, who scored a goal, like their country of origin, height, weight, age, image, etc? This is where the nested include comes into play!
Using nested includes
The nested includes are represented in the form of dots (.), which are then linked to a standard include. This shows their relationship.
Check our for a complete syntax overview.
Because the include event is related to a player. You can add .player to the include, which will result in the nested include: events.player