I want to retrieve data from the API and then send it to the database.
However, I do not want to send it in the raw form, but rather in a manipulated form. E.g. in the picture below, we have the following pairs database = API (e.g. fixtureID = fixtureID):
However, I don’t want the raw relationship above, but e.g. the following:
goals_conceded = 0 (if goals_conceded <= 1) or 1 (if goals_conceded > 1)
How can I do so?