<@U9U62UJMD> you can merge the logic of phase 2 an...
# general
r
@elegant-rose-64918 you can merge the logic of phase 2 and 3. if you never expect more than 1000 results, you can just do
getRange({ start: 0, end: 1000 })
, and it will return an array with the exact number of the results if you never expect more than 4000 results, you can do
each(result => { /* do something with result */});
and fill an array with the results