I can only request 15 new record creations with a single API call.
// create a People-Holiday::Christmas record for each person in the People table
people.map(person => {
peopleHolidaysTable.createRecordAsync({
'Person' : [{id: `${person.id}`}],
'Holiday' : [{id: 'reclZYRpInJiev0ce'}]
});
});
I have 33 people in my array. I’m not terribly proficient with async programming in JS yet. What is the proper way to chunk this into 3 API calls of 15/15/3? I suspect I need to split it up into arrays of 15 and then have each call await
the one previous with a timeout of 1000ms
.
Anyone able to provide some guidance on how to do that?