github Azure/azure-sdk-for-js @azure/cosmos_3.8.0

latest releases: @azure-tools/test-recorder_3.2.0, @azure/storage-file-datalake_12.17.0-beta.1, @azure/storage-file-share_12.18.1-beta.1...
3 years ago

3.8.0 (2020-08-10)

  • FEATURE: Throws when initializing ClientContext with an invalid endpoint
  • FEATURE: Changes JSONArray type internal from Array to ArrayLike to avoid requiring type coercion for immutable data
  • FEATURE: Adds bulk request to container.items. Allows aggregate bulk request for up to 100 operations on items with the types: Create, Upsert, Read, Replace, Delete
// up to 100 operations
const operations: OperationInput[] = [
  {
    operationType: "Create",
    resourceBody: { id: "doc1", name: "sample", key: "A" }
  },
  {
    operationType: "Upsert",
    resourceBody: { id: "doc2", name: "other", key: "A" }
  },
  {
    operationType: "Read",
    id: "readItemId",
    partitionKey: "key"
  }
];

await database.container.items.bulk(operations);

Don't miss a new azure-sdk-for-js release

NewReleases is sending notifications on new releases.