code: function getDocument(document, docdbClient, nodeContext) {
      var documentUrl = `${collectionUrl}/docs/${document.id}`;
      nodeContext.log(`Getting document:\n${document.id}\n`);
  
      return new Promise((resolve, reject) => {
          nodeContext.log("trying read");
          docdbClient.readDocument(documentUrl, (err, result) => {
              nodeContext.log("reading");
              if (err) {
                  nodeContext.log("error");
                  if (err.code == HttpStatusCodes.NOTFOUND) {
                      nodeContext.log("creating");
                      docdbClient.createDocument(collectionUrl, document, (err, created) => {
                          nodeContext.log("try to create");
                          if (err) reject(err)
                          else resolve(created);
                      });
                  } else {
                      reject(err);
                  }
              } else {
                  resolve(result);
              }
          });
      });
  }
docs: ---------------------------------------------------------- Documents--------------------------------------------------------------------