This time we’ve used the include events.type to have the name of the event type included in the response. More information about this can be found in our nested include tutorial.
Now, the events include contains a lot of information we’re not interested in. Frankly, we’re only interested in the name of the players related to the event and the minute the event occurred. As you’ve learnt, we can select all the fields on the base entity.
In our example, the events entity. We need the player_name,related_player_name and minute field. This results in the following steps:
Add the include: &include=events
Determine the fields you’re interested in: “player_name”,“related_player_name” and “minute” field.
Select the fields: &include=events:player_name,related_player_name,minute