Skip to content

Instantly share code, notes, and snippets.

@sdawood
Created July 20, 2018 04:07
Show Gist options
  • Select an option

  • Save sdawood/3b88c54dae686924f34305e61ca3627f to your computer and use it in GitHub Desktop.

Select an option

Save sdawood/3b88c54dae686924f34305e61ca3627f to your computer and use it in GitHub Desktop.
Async Generator of values
async function* querySequence(table, {keyConditionExpression, expressionAttributeValues, strict = false, limit} = {}, options = {}, params = {}) {
return yield* queryBatches(table, {keyConditionExpression, expressionAttributeValues, strict, limit, flatten: true}, options, params); // see: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/yield*
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment