"id": 1,
"brand_name": "adidas",
"drop_date": "2020-10-06",
"archive": false,
"created_at": "2020-11-02T21:12:03.834Z",
"updated_at": "2020-11-30T10:55:44.660Z",
"likes": 1,
"retailer_info": [
{
"id": 359,
"drop_date": "lastTest",
"drop_hour": "00:00:00.000",
"link": "v",
"retailer": {
"id": 1,
"retailler_name": "1",
"slug": "1",
"created_at": "2020-11-28T17:46:08.234Z",
"updated_at": "2020-11-28T17:46:08.244Z",
"retailler_image": null
},
"drop_type": "Raffle",
"oui": null,
"isnew": false
},
{
"id": 360,
"drop_date": "lastTest",
"drop_hour": "23:00:00.000",
"link": "lastTest",
"retailer": {
"id": 2,
"retailler_name": "csaacs",
"slug": "csaacs",
"created_at": "2020-11-28T17:46:14.519Z",
"updated_at": "2020-11-28T17:46:14.528Z",
"retailler_image": null
},
"drop_type": "Instagram",
"oui": null,
"isnew": false
}
]
},
So for example I have this article, what I want is to whenever I add a retailer_info composant inside my article, to know if it is a new one or not. To do that I add a “isnew” field which is by default set as true and I change it to false every day with cron. But I want to display “isnew” in the frontend so if there is a way to do it with published_at or created_at I take it
It is how I do but I don’t know if it the good way aha