I have an API call that returns a list of devices, something like this:
{
"data": {
"property": {
"devices": {
"nodes": [
{
"id": "675c672e-cbb5-11ec-9294-d8c0a6cf76d9",
"name": "don_eb2_125",
"lastOnline": "2022-09-22T15:51:57.960000+00:00"
},
{
"id": "89515d68-433d-11ec-8a8b-841b7765683c",
"name": "don_p3_19",
"lastOnline": null
}
]
}
}
}
}
I'm trying to generate dynamic children with this information, but I've run into multiple problems along the way.
My
lastOnline
field isn't automatically converted to a date (as noted in this issue)I'd like to use the timeago library but I need to wrap my function in a custom action so that I can use a custom import