Skip to content

Instantly share code, notes, and snippets.

@johndowns
Created January 15, 2018 06:57
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/1f4532d92205c8d1d8faf57ed8f1de0c to your computer and use it in GitHub Desktop.
Save johndowns/1f4532d92205c8d1d8faf57ed8f1de0c to your computer and use it in GitHub Desktop.
First part of stored procedure code
function getGroupedOrders(productIds: string[]) {
// capture the contextual variables we'll need
var collection = getContext().getCollection();
var response = getContext().getResponse();
// run the core logic of the stored procedure
var output = getGroupedOrdersImpl(productIds, collection);
response.setBody(output);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment