mws-advanced icon indicating copy to clipboard operation
mws-advanced copied to clipboard

add ability to "get all" of every type of function that provides a *ByNextToken equivalent

Open ericblade opened this issue 6 years ago • 3 comments

We should add a parameter to all the base functions that also have *ByNextToken versions, that will allow the MWS lib to go and gather up ALL of the data before accepting the promise.

So, you could potentially call something like

    callEndpoint('ListFinancialEvents', { GetAll: true })

and if you receive a NextToken with the initial result, then automatically call ListFinancialEventsByNextToken, and add that data to the original result. Re-run until there are no more NextTokens returned.

This is essentially what getReportListAll() does already.

ericblade avatar Nov 30 '17 01:11 ericblade