Issue building up list of items by looping through query using last evaluated key

Hy, THank you very much for your help. unless I misunderstood you your suggesting I do this:

  let data = await getTasksByType.trigger({
    additionalScope: { lastKey: lastKey }
  });

but according to this post additional scopes cant be used in the URL portion of the rest API query Additional Scope and REST Api Queries?

am I not understanding something?