Skip to content

Instantly share code, notes, and snippets.

View Robjam's full-sized avatar

James Roberts Robjam

  • 20:14 (UTC +09:00)
View GitHub Profile
@Robjam
Robjam / index.js
Created August 23, 2018 04:20
samples of @azure/cosmosdb with iterators
var CosmosClient = require('@azure/cosmos').CosmosClient;
const endpoint = "[serviceEndpoint]"; // Add the URI from azure portal
const masterKey = "[masterkey]"; // Add the primary key from azure portal
const client = new CosmosClient({ endpoint, auth: { masterKey } });
const databaseDefinition = { id: "myDatabase" }; // Add the databaseID
const collectionDefinition = { id: "myCollection" }; // Add the collectionId
async function run() {

Keybase proof

I hereby claim:

  • I am robjam on github.
  • I am robjam (https://keybase.io/robjam) on keybase.
  • I have a public key ASApH9VTTTFT3LH12Y8Nv-We4W3T9UT2Cdn2yUEAJLkhMwo

To claim this, I am signing this object: