busy-jordan-7054
07/26/2023, 8:00 PM"traits": {
"cars": {
"update": [{
"age": 27,
"id": 1,
"name": "Alex Keener"
}],
Is there any JS operation so we can create this schema easily if it did not exist in the original payload?millions-activity-52391
07/26/2023, 8:00 PMmillions-activity-52391
07/27/2023, 2:59 PMif !(event.context?.traits?.cars? && event.context?.traits?.cars?.update?) {
// Add the traits object
}busy-jordan-7054
07/27/2023, 6:27 PMmillions-activity-52391
07/31/2023, 2:11 PM