Skip to content

Instantly share code, notes, and snippets.

@ealsur ealsur/index.js
Created Feb 6, 2018

What would you like to do?
Azure Cosmos DB + Functions Cookbook - live migration index.js
module.exports = function(context, input) {
if(!!input && input.length > 0){
context.bindings.docsToSave = [];
for(let i = 0, len=input.length; i<len;i++){
const doc = input[i];
// Do something here with the doc or create a new one
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.