Hi All,
I'm connecting to a Rest API to bring data through to my application and after some testing (Aka. Breaking it multiple times until it doesn't break!) .. I have the information I need. My issue is that if I then add this query to a table, it only brings raw data through.
For example, rather than saying:
"Joe Bloggs"
it says
"{"id": 2395, "name": "Joe Bloggs", "team_id: 8 }
I understand it's due to the data but is there a way I can trim these results so it only shows Joe Bloggs, rather than everything before and after please?
On the query itself, I have a 'Transform Results' set to the below (for reference in case it influences anything:)
function transformData(data) {
** const filteredData = data.data.filter(item => item.role && moment(item.enddate).isAfter(moment()) && moment(item.date).isSameOrBefore(moment()));**
** return filteredData;**
}
return transformData(data);