Skip to content

Instantly share code, notes, and snippets.

@johndowns
Last active February 7, 2018 09:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johndowns/05128cd2e310db4e32351fc2a76b7cfd to your computer and use it in GitHub Desktop.
Save johndowns/05128cd2e310db4e32351fc2a76b7cfd to your computer and use it in GitHub Desktop.
function getGroupedOrdersImpl(productIds: string[], collection: ICollection): CustomersGroupedByProduct[] {
var outputArray: CustomersGroupedByProduct[] = [];
productIds.forEach(productId => {
// set up a query to find the customers who ordered this product ID
// REPLACEME
});
// set the stored procedure's response body
return outputArray;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment