@azure/cosmos
TypeScript icon, indicating that this package has built-in type declarations

4.2.0 • Public • Published

Azure Cosmos DB client library for JavaScript/TypeScript

latest npm badge Build Status

Azure Cosmos DB is a globally distributed, multi-model database service that supports document, key-value, wide-column, and graph databases. This package is intended for JavaScript/TypeScript applications to interact with SQL API databases and the JSON documents they contain:

  • Create Cosmos DB databases and modify their settings
  • Create and modify containers to store collections of JSON documents
  • Create, read, update, and delete the items (JSON documents) in your containers
  • Query the documents in your database using SQL-like syntax

Key links:

Getting started

Prerequisites

Azure Subscription and Cosmos DB SQL API Account

You must have an Azure Subscription, and a Cosmos DB account (SQL API) to use this package.

If you need a Cosmos DB SQL API account, you can use the Azure Cloud Shell to create one with this Azure CLI command:

az cosmosdb create --resource-group <resource-group-name> --name <cosmos-database-account-name>

Or you can create an account in the Azure Portal

NodeJS

This package is distributed via npm which comes preinstalled with NodeJS using an LTS version.

CORS

You need to set up Cross-Origin Resource Sharing (CORS) rules for your Cosmos DB account if you need to develop for browsers. Follow the instructions in the linked document to create new CORS rules for your Cosmos DB.

Install this package

npm install @azure/cosmos

Get Account Credentials

You will need your Cosmos DB Account Endpoint and Key. You can find these in the Azure Portal or use the Azure CLI snippet below. The snippet is formatted for the Bash shell.

az cosmosdb show --resource-group <your-resource-group> --name <your-account-name> --query documentEndpoint --output tsv
az cosmosdb keys list --resource-group <your-resource-group> --name <your-account-name> --query primaryMasterKey --output tsv

Create an instance of CosmosClient

Interaction with Cosmos DB starts with an instance of the CosmosClient class

const { CosmosClient } = require("@azure/cosmos");

const endpoint = "https://your-account.documents.azure.com";
const key = "<database account masterkey>";
const client = new CosmosClient({ endpoint, key });

async function main() {
  // The rest of the README samples are designed to be pasted into this function body
}

main().catch((error) => {
  console.error(error);
});

For simplicity we have included the key and endpoint directly in the code but you will likely want to load these from a file not in source control using a project such as dotenv or loading from environment variables

In production environments, secrets like keys should be stored in Azure Key Vault

Key concepts

Once you've initialized a CosmosClient, you can interact with the primary resource types in Cosmos DB:

  • Database: A Cosmos DB account can contain multiple databases. When you create a database, you specify the API you'd like to use when interacting with its documents: SQL, MongoDB, Gremlin, Cassandra, or Azure Table. Use the Database object to manage its containers.

  • Container: A container is a collection of JSON documents. You create (insert), read, update, and delete items in a container by using methods on the Container object.

  • Item: An Item is a JSON document stored in a container. Each Item must include an id key with a value that uniquely identifies the item within the container. If you do not provide an id, the SDK will generate one automatically.

For more information about these resources, see Working with Azure Cosmos databases, containers and items.

Examples

The following sections provide several code snippets covering some of the most common Cosmos DB tasks, including:

Create a database

After authenticating your CosmosClient, you can work with any resource in the account. The code snippet below creates a NOSQL API database.

const { database } = await client.databases.createIfNotExists({ id: "Test Database" });
console.log(database.id);

Create a container

This example creates a container with default settings

const { container } = await database.containers.createIfNotExists({ id: "Test Database" });
console.log(container.id);

Using Partition Keys

This example shows various types of partition Keys supported.

await container.item("id", "1").read();        // string type
await container.item("id", 2).read();          // number type
await container.item("id", true).read();       // boolean type
await container.item("id", {}).read();         // None type
await container.item("id", undefined).read();  // None type
await container.item("id", null).read();       // null type

If the Partition Key consists of a single value, it could be supplied either as a literal value, or an array.

await container.item("id", "1").read();
await container.item("id", ["1"]).read();

If the Partition Key consists of more than one values, it should be supplied as an array.

await container.item("id", ["a", "b"]).read();
await container.item("id", ["a", 2]).read();
await container.item("id", [{}, {}]).read();
await container.item("id", ["a", {}]).read();
await container.item("id", [2, null]).read();

Insert items

To insert items into a container, pass an object containing your data to Items.upsert. The Azure Cosmos DB service requires each item has an id key. If you do not provide one, the SDK will generate an id automatically.

This example inserts several items into the container

const cities = [
  { id: "1", name: "Olympia", state: "WA", isCapitol: true },
  { id: "2", name: "Redmond", state: "WA", isCapitol: false },
  { id: "3", name: "Chicago", state: "IL", isCapitol: false }
];
for (const city of cities) {
  await container.items.create(city);
}

Read an item

To read a single item from a container, use Item.read. This is a less expensive operation than using SQL to query by id.

await container.item("1", "1").read();

CRUD on Container with hierarchical partition key

Create a Container with hierarchical partition key

const containerDefinition = {
  id: "Test Database",
  partitionKey: {
    paths: ["/name", "/address/zip"],
    version: PartitionKeyDefinitionVersion.V2,
    kind: PartitionKeyKind.MultiHash,
  },
}
const { container } = await database.containers.createIfNotExists(containerDefinition);
console.log(container.id);

Insert an item with hierarchical partition key defined as - ["/name", "/address/zip"]

const item = {
  id: "1",
  name: 'foo',
  address: {
    zip: 100
  },
  active: true
}
await container.items.create(item);

To read a single item from a container with hierarchical partition key defined as - ["/name", "/address/zip"],

await container.item("1", ["foo", 100]).read();

Query an item with hierarchical partition key with hierarchical partition key defined as - ["/name", "/address/zip"],

const { resources } = await container.items
  .query("SELECT * from c WHERE c.active = true", {
          partitionKey: ["foo", 100],
        })
  .fetchAll();
for (const item of resources) {
  console.log(`${item.name}, ${item.address.zip} `);
}

Delete an item

To delete items from a container, use Item.delete.

// Delete the first item returned by the query above
await container.item("1").delete();

Query the database

A Cosmos DB SQL API database supports querying the items in a container with Items.query using SQL-like syntax:

const { resources } = await container.items
  .query("SELECT * from c WHERE c.isCapitol = true")
  .fetchAll();
for (const city of resources) {
  console.log(`${city.name}, ${city.state} is a capitol `);
}

Perform parameterized queries by passing an object containing the parameters and their values to Items.query:

const { resources } = await container.items
  .query({
    query: "SELECT * from c WHERE c.isCapitol = @isCapitol",
    parameters: [{ name: "@isCapitol", value: true }]
  })
  .fetchAll();
for (const city of resources) {
  console.log(`${city.name}, ${city.state} is a capitol `);
}

For more information on querying Cosmos DB databases using the SQL API, see Query Azure Cosmos DB data with SQL queries.

Change Feed Pull Model

Change feed can be fetched for a partition key, a feed range or an entire container.

To process the change feed, create an instance of ChangeFeedPullModelIterator. When you initially create ChangeFeedPullModelIterator, you must specify a required changeFeedStartFrom value inside the ChangeFeedIteratorOptions which consists of both the starting position for reading changes and the resource(a partition key or a FeedRange) for which changes are to be fetched. You can optionally use maxItemCount in ChangeFeedIteratorOptions to set the maximum number of items received per page.

Note: If no changeFeedStartFrom value is specified, then changefeed will be fetched for an entire container from Now().

There are four starting positions for change feed:

  • Beginning
// Signals the iterator to read changefeed from the beginning of time.
const options = {
  changeFeedStartFrom: ChangeFeedStartFrom.Beginning(),
};
const iterator = container.getChangeFeedIterator(options);
  • Time
// Signals the iterator to read changefeed from a particular point of time.
const time = new Date("2023/09/11"); // some sample date
const options = {
  changeFeedStartFrom: ChangeFeedStartFrom.Time(time),
};
  • Now
// Signals the iterator to read changefeed from this moment onward.
const options = {
  changeFeedStartFrom: ChangeFeedStartFrom.Now(),
};
  • Continuation
// Signals the iterator to read changefeed from a saved point.
const continuationToken = "some continuation token recieved from previous request";
const options = {
  changeFeedStartFrom: ChangeFeedStartFrom.Continuation(continuationToken),
};

Here's an example of fetching change feed for a partition key

const partitionKey = "some-partition-Key-value";
const options = {
  changeFeedStartFrom: ChangeFeedStartFrom.Beginning(partitionKey),
};

const iterator = container.items.getChangeFeedIterator(options);

while (iterator.hasMoreResults) {
  const response = await iterator.readNext();
  // process this response
}

Because the change feed is effectively an infinite list of items that encompasses all future writes and updates, the value of hasMoreResults is always true. When you try to read the change feed and there are no new changes available, you receive a response with NotModified status.

More detailed usage guidelines and examples of change feed can be found here.

Error Handling

The SDK generates various types of errors that can occur during an operation.

  1. ErrorResponse is thrown if the response of an operation returns an error code of >=400.
  2. TimeoutError is thrown if Abort is called internally due to timeout.
  3. AbortError is thrown if any user passed signal caused the abort.
  4. RestError is thrown in case of failure of underlying system call due to network issues.
  5. Errors generated by any devDependencies. For Eg. @azure/identity package could throw CredentialUnavailableError.

Following is an example for handling errors of type ErrorResponse, TimeoutError, AbortError, and RestError.

try {
  // some code
} catch (err) {
  if (err instanceof ErrorResponse) {
    // some specific error handling.
  } else if (err instanceof RestError) {
    // some specific error handling.
  }
  // handle other type of errors in similar way.
  else {
    // for any other error.
  }
}

It's important to properly handle these errors to ensure that your application can gracefully recover from any failures and continue functioning as expected. More details about some of these errors and their possible solutions can be found here.

Troubleshooting

General

When you interact with Cosmos DB errors returned by the service correspond to the same HTTP status codes returned for REST API requests:

HTTP Status Codes for Azure Cosmos DB

Conflicts

For example, if you try to create an item using an id that's already in use in your Cosmos DB database, a 409 error is returned, indicating the conflict. In the following snippet, the error is handled gracefully by catching the exception and displaying additional information about the error.

try {
  await containers.items.create({ id: "existing-item-id" });
} catch (error) {
  if (error.code === 409) {
    console.log("There was a conflict with an existing item");
  }
}

Transpiling

The Azure SDKs are designed to support ES5 JavaScript syntax and LTS versions of Node.js. If you need support for earlier JavaScript runtimes such as Internet Explorer or Node 6, you will need to transpile the SDK code as part of your build process.

Handle transient errors with retries

While working with Cosmos DB, you might encounter transient failures caused by rate limits enforced by the service, or other transient problems like network outages. For information about handling these types of failures, see Retry pattern in the Cloud Design Patterns guide, and the related Circuit Breaker pattern.

Logging

Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the AZURE_LOG_LEVEL environment variable to info. Alternatively, logging can be enabled at runtime by calling setLogLevel in the @azure/logger. While using AZURE_LOG_LEVEL make sure to set it before logging library is initialized. Ideally pass it through command line, if using libraries like dotenv make sure such libraries are initialized before logging library.

const { setLogLevel } = require("@azure/logger");
setLogLevel("info");

For more detailed instructions on how to enable logs, you can look at the @azure/logger package docs.

Diagnostics

Cosmos Diagnostics feature provides enhanced insights into all your client operations. A CosmosDiagnostics object is added to response of all client operations. such as

  • Point look up operation reponse - item.read(), container.create(), database.delete()
  • Query operation reponse -queryIterator.fetchAll(),
  • Bulk and Batch operations -item.batch().
  • Error/Exception response objects.

A CosmosDiagnostics object is added to response of all client operations. There are 3 Cosmos Diagnostic levels, info, debug and debug-unsafe. Where only info is meant for production systems and debug and debug-unsafe are meant to be used during development and debugging, since they consume significantly higher resources. Cosmos Diagnostic level can be set in 2 ways

  • Programatically
  const client = new CosmosClient({ endpoint, key, diagnosticLevel: CosmosDbDiagnosticLevel.debug });
  • Using environment variables. (Diagnostic level set by Environment variable has higher priority over setting it through client options.)
  export AZURE_COSMOSDB_DIAGNOSTICS_LEVEL="debug"

Cosmos Diagnostic has three members

  • ClientSideRequestStatistics Type: Contains aggregates diagnostic details, including metadata lookups, retries, endpoints contacted, and request and response statistics like payload size and duration. (is always collected, can be used in production systems.)

  • DiagnosticNode: Is a tree-like structure that captures detailed diagnostic information. Similar to har recording present in browsers. This feature is disabled by default and is intended for debugging non-production environments only. (collected at diagnostic level debug and debug-unsafe)

  • ClientConfig: Captures essential information related to client's configuration settings during client initialization. (collected at diagnostic level debug and debug-unsafe)

Please make sure to never set diagnostic level to debug-unsafe in production environment, since it this level CosmosDiagnostics captures request and response payloads and if you choose to log it (it is by default logged by @azure/logger at verbose level). These payloads might get captured in your log sinks.

Consuming Diagnostics

  • Since diagnostics is added to all Response objects. You could programatically access CosmosDiagnostic as follows.
  // For point look up operations
  const { container, diagnostics: containerCreateDiagnostic } =
    await database.containers.createIfNotExists({
      id: containerId,
      partitionKey: {
        paths: ["/key1"],
      },
  });

  // For Batch operations
   const operations: OperationInput[] = [
    {
      operationType: BulkOperationType.Create,
      resourceBody: { id: 'A', key: "A", school: "high" },
    },
  ];
  const response = await container.items.batch(operations, "A"); 
  
  // For query operations
  const queryIterator = container.items.query("select * from c");
  const { resources, diagnostics } = await queryIterator.fetchAll();

  // While error handling
  try {
    // Some operation that might fail
  } catch (err) {
    const diagnostics = err.diagnostics
  }
  • You could also log diagnostics using @azure/logger, diagnostic is always logged using @azure/logger at verbose level. So if you set Diagnostic level to debug or debug-unsafe and @azure/logger level to verbose, diagnostics will be logged.

Next steps

More sample code

Several samples are available to you in the SDK's GitHub repository. These samples provide example code for additional scenarios commonly encountered while working with Cosmos DB:

  • Database Operations
  • Container Operations
  • Item Operations
  • Configuring Indexing
  • Reading a container Change Feed
  • Stored Procedures
  • Changing Database/Container throughput settings
  • Multi Region Write Operations

Limitations

Currently the features below are not supported. For alternatives options, check the Workarounds section below.

Data Plane Limitations:

  • Queries with COUNT from a DISTINCT subquery​
  • Direct TCP Mode access​
  • Aggregate cross-partition queries, like sorting, counting, and distinct, don't support continuation tokens. Streamable queries, like SELECT * FROM WHERE , support continuation tokens. See the "Workaround" section for executing non-streamable queries without a continuation token.
  • Change Feed: Processor
  • Change Feed: Read multiple partitions key values
  • Change Feed pull model support for partial hierarchical partition keys #27059
  • Cross-partition ORDER BY for mixed types
  • Control Plane Limitations:

    • Get CollectionSizeUsage, DatabaseUsage, and DocumentUsage metrics​
    • Create Geospatial Index
    • Update Autoscale throughput

    Workarounds

    Continuation token for cross partitions queries

    You can achieve cross partition queries with continuation token support by using Side car pattern. This pattern can also enable applications to be composed of heterogeneous components and technologies.

    Executing non-stremable cross-partition query

    To execute non-streamable queries without the use of continuation tokens, you can create a query iterator with the required query specification and options. The following sample code demonstrates how to use a query iterator to fetch all results without the need for a continuation token:

    const querySpec = {
      query: "SELECT c.status, COUNT(c.id) AS count FROM c GROUP BY c.status",
    };
    const queryOptions = {
      maxItemCount: 10, // maximum number of items to return per page
      enableCrossPartitionQuery: true,
    };
    const querIterator = await container.items.query(querySpec, queryOptions);
    while (querIterator.hasMoreResults()) {
      const { resources: result } = await querIterator.fetchNext();
      //Do something with result
    }

    This approach can also be used for streamable queries.

    Control Plane operations

    Typically, you can use Azure Portal, Azure Cosmos DB Resource Provider REST API, Azure CLI or PowerShell for the control plane unsupported limitations.

    Additional documentation

    For more extensive documentation on the Cosmos DB service, see the Azure Cosmos DB documentation on docs.microsoft.com.

    Useful links

    Contributing

    If you'd like to contribute to this library, please read the contributing guide to learn more about how to build and test the code.

    Impressions

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
4.2.022,288latest
4.2.1-alpha.20241210.10dev

Version History

VersionDownloads (Last 7 Days)Published
4.2.1-alpha.20241210.10
4.2.1-alpha.20241209.140
4.2.1-alpha.20241206.256
4.2.1-alpha.20241204.156
4.2.1-alpha.20241203.155
4.2.1-alpha.20241202.119
4.2.1-alpha.20241129.112
4.2.1-alpha.20241127.16
4.2.1-alpha.20241126.25
4.2.1-alpha.20241125.23
4.2.0-alpha.20241122.14
4.2.0-alpha.20241121.14
4.2.0-alpha.20241120.14
4.2.0-alpha.20241119.63
4.2.022,288
4.1.2-alpha.20241115.13
4.2.0-beta.1282
4.1.2-alpha.20241114.22
4.1.2-alpha.20241113.21
4.1.2-alpha.20241112.11
4.1.2-alpha.20241111.11
4.1.2-alpha.20241031.11
4.1.2-alpha.20241030.10
4.1.2-alpha.20241029.10
4.1.2-alpha.20241028.10
4.1.2-alpha.20241025.12
4.1.2-alpha.20241024.12
4.1.2-alpha.20241018.12
4.1.2-alpha.20241017.13
4.1.2-alpha.20241016.22
4.1.2-alpha.20241014.12
4.1.2-alpha.20241011.12
4.1.2-alpha.20241010.12
4.1.2-alpha.20241009.229
4.1.2-alpha.20241008.12
4.1.2-alpha.20241007.12
4.1.2-alpha.20241004.13
4.1.2-alpha.20241003.12
4.1.2-alpha.20241002.12
4.1.2-alpha.20241001.13
4.1.2-alpha.20240930.12
4.1.2-alpha.20240927.12
4.1.2-alpha.20240926.12
4.1.2-alpha.20240925.12
4.1.2-alpha.20240924.12
4.1.2-alpha.20240920.12
4.1.2-alpha.20240919.13
4.1.2-alpha.20240918.12
4.1.2-alpha.20240917.12
4.1.2-alpha.20240916.12
4.1.2-alpha.20240913.12
4.1.2-alpha.20240912.12
4.1.2-alpha.20240911.12
4.1.2-alpha.20240910.12
4.1.2-alpha.20240909.12
4.1.2-alpha.20240906.12
4.1.2-alpha.20240905.12
4.1.2-alpha.20240904.12
4.1.2-alpha.20240903.12
4.1.2-alpha.20240902.22
4.1.1-alpha.20240830.12
4.1.121,825
4.1.1-alpha.20240829.32
4.1.0-alpha.20240828.22
4.1.0-alpha.20240827.10
4.1.0-alpha.20240826.10
4.1.0-alpha.20240823.10
4.1.0-alpha.20240822.10
4.1.0-alpha.20240821.10
4.1.0-alpha.20240820.10
4.1.0-alpha.20240819.10
4.1.0-alpha.20240816.10
4.1.0-alpha.20240815.11
4.1.0-alpha.20240814.10
4.1.0-alpha.20240812.10
4.1.0-alpha.20240809.10
4.1.0-alpha.20240808.10
4.1.03,538
4.1.0-alpha.20240807.10
4.1.0-alpha.20240805.40
4.1.0-alpha.20240802.20
4.1.0-alpha.20240801.60
4.1.0-alpha.20240731.10
4.1.0-alpha.20240730.10
4.1.0-alpha.20240729.10
4.1.0-alpha.20240726.22
4.1.0-alpha.20240725.12
4.1.0-alpha.20240724.12
4.1.0-alpha.20240723.10
4.1.0-alpha.20240722.10
4.0.1-alpha.20240719.11
4.0.1-alpha.20240717.20
4.0.1-alpha.20240716.10
4.0.1-alpha.20240715.20
4.0.1-alpha.20240712.10
4.0.1-alpha.20240711.10
4.0.1-alpha.20240710.10
4.0.1-alpha.20240709.10
4.0.1-alpha.20240708.10
4.0.1-alpha.20240705.10
4.0.1-alpha.20240704.10
4.0.1-alpha.20240702.11
4.0.1-alpha.20240701.10
4.0.1-alpha.20240628.10
4.0.1-alpha.20240627.10
4.0.1-alpha.20240626.10
4.0.1-alpha.20240625.10
4.0.1-alpha.20240624.10
4.0.1-alpha.20240621.11
4.0.1-alpha.20240620.10
4.0.1-alpha.20240619.10
4.0.1-alpha.20240618.21
4.0.1-alpha.20240520.10
4.0.1-alpha.20240517.30
4.0.1-beta.3141
4.0.1-alpha.20240516.110
4.0.1-alpha.20240515.20
4.0.1-alpha.20240514.10
4.0.1-alpha.20240513.10
4.0.1-alpha.20240510.10
4.0.1-alpha.20240509.30
4.0.1-alpha.20240508.10
4.0.1-alpha.20240507.10
4.0.1-alpha.20240506.10
4.0.1-alpha.20240503.10
4.0.1-alpha.20240502.20
4.0.1-alpha.20240501.10
4.0.1-alpha.20240430.10
4.0.1-alpha.20240429.10
4.0.1-alpha.20240426.10
4.0.1-alpha.20240425.10
4.0.1-alpha.20240424.10
4.0.1-alpha.20240423.10
4.0.1-alpha.20240422.10
4.0.1-alpha.20240419.30
4.0.1-alpha.20240418.10
4.0.1-alpha.20240417.20
4.0.1-alpha.20240416.10
4.0.1-alpha.20240415.10
4.0.1-alpha.20240412.10
4.0.1-alpha.20240411.20
4.0.1-alpha.20240410.10
4.0.1-alpha.20240403.10
4.0.1-alpha.20240402.11
4.0.1-alpha.20240328.20
4.0.1-alpha.20240326.20
4.0.1-alpha.20240321.10
4.0.1-alpha.20240312.10
4.0.1-alpha.20240308.40
4.0.1-alpha.20240226.10
4.0.1-alpha.20240223.20
4.0.1-alpha.20240221.10
4.0.1-alpha.20240220.10
4.0.1-alpha.20240213.10
4.0.1-alpha.20240206.10
4.0.1-alpha.20240202.10
4.0.1-alpha.20240131.10
4.0.1-alpha.20240130.30
4.0.1-alpha.20240126.30
4.0.1-beta.248
4.0.1-alpha.20240118.20
4.0.1-beta.10
4.0.1-alpha.20240110.10
4.0.1-alpha.20240108.10
4.0.1-alpha.20231229.20
4.0.1-alpha.20231222.10
4.0.1-alpha.20231219.20
4.0.1-alpha.20231218.10
4.0.1-alpha.20231211.12
4.0.1-alpha.20231206.10
4.0.1-alpha.20231117.20
4.0.1-alpha.20231113.10
4.0.1-alpha.20231106.10
4.0.1-alpha.20231102.20
4.0.1-alpha.20231031.10
4.0.0-alpha.20231030.10
4.0.0-alpha.20231023.10
4.0.0-alpha.20231009.10
4.0.0-alpha.20231003.20
4.0.0-alpha.20231002.10
4.0.0-alpha.20230929.20
4.0.0-alpha.20230927.10
4.0.0-alpha.20230926.10
4.0.0-alpha.20230922.12
4.0.0-alpha.20230919.12
4.0.0-alpha.20230918.12
4.0.0-alpha.20230913.21
4.0.0-alpha.20230912.61
4.0.057,089
4.0.0-alpha.20230911.30
4.0.0-alpha.20230908.30
4.0.0-alpha.20230907.40
3.17.4-alpha.20230906.20
3.17.4-alpha.20230905.30
4.0.0-alpha.20230830.20
4.0.0-alpha.20230825.10
4.0.0-alpha.20230810.10
4.0.0-alpha.20230808.20
4.0.0-alpha.20230731.20
4.0.0-alpha.20230727.40
4.0.0-alpha.20230724.10
4.0.0-alpha.20230717.10
4.0.0-alpha.20230711.20
4.0.0-alpha.20230707.20
4.0.0-alpha.20230629.20
4.0.0-alpha.20230626.10
4.0.0-alpha.20230623.10
4.0.0-alpha.20230621.10
4.0.0-alpha.20230619.10
4.0.0-alpha.20230616.10
4.0.0-alpha.20230614.20
3.17.4-alpha.20230612.10
3.17.4-alpha.20230606.20
3.17.4-alpha.20230530.10
3.17.4-alpha.20230522.10
3.17.4-alpha.20230519.22
3.17.4-alpha.20230511.10
3.17.4-alpha.20230508.10
3.17.4-alpha.20230501.12
3.17.4-alpha.20230419.10
3.17.4-alpha.20230414.12
3.17.4-beta.10
3.17.4-alpha.20230320.30
3.17.383,128
3.17.3-alpha.20230228.20
3.17.3-alpha.20230221.10
3.17.3-alpha.20230220.30
3.17.3-alpha.20230217.10
3.17.3-alpha.20230208.10
3.17.3-alpha.20230206.10
3.17.3-alpha.20230202.20
3.17.3-alpha.20230201.10
3.17.3-alpha.20230127.10
3.17.3-alpha.20230126.12
3.17.3-alpha.20230124.12
3.17.3-alpha.20230123.10
3.17.3-alpha.20230117.20
3.17.3-alpha.20230106.10
3.17.3-alpha.20230103.10
3.17.3-alpha.20221219.12
3.17.2-alpha.20221208.30
3.17.2-alpha.20221128.12
3.17.2-alpha.20221118.20
3.17.25,083
3.17.2-alpha.20221115.30
3.17.2-alpha.20221110.10
3.17.2-alpha.20221107.20
3.17.2-alpha.20221103.20
3.17.2-alpha.20221101.10
3.17.2-alpha.20221026.10
3.17.2-alpha.20221025.20
3.17.2-alpha.20221021.10
3.17.2-alpha.20221020.20
3.17.1-alpha.20221014.12
3.17.1-alpha.20221007.10
3.17.1-alpha.20221003.10
3.17.1-alpha.20220930.10
3.17.1-alpha.20220926.10
3.17.1-alpha.20220923.10
3.17.1-alpha.20220919.10
3.17.1-alpha.20220912.42
3.17.11,510
3.17.1-alpha.20220909.22
3.17.1-alpha.20220907.10
3.17.1-alpha.20220822.20
3.17.0-alpha.20220819.20
3.17.0663
3.16.4-alpha.20220818.20
3.16.4-alpha.20220805.42
3.16.42,478
3.16.4-alpha.20220803.20
3.16.4-alpha.20220729.20
3.16.3-alpha.20220722.10
3.16.3499
3.16.3-alpha.20220714.12
3.16.3-alpha.20220629.12
3.16.3-alpha.20220628.20
3.16.2409
3.16.2-alpha.20220624.40
3.16.2-alpha.20220601.20
3.16.1-alpha.20220531.20
3.16.1217
3.16.1-alpha.20220530.10
3.16.1-alpha.20220527.20
3.16.1-alpha.20220526.20
3.16.043
3.16.0-alpha.20220524.20
3.15.1-alpha.20220420.20
3.15.1-alpha.20220411.10
3.15.1-alpha.20220407.10
3.15.1-alpha.20220406.20
3.15.1-alpha.20220401.10
3.15.1-alpha.20220330.10
3.15.1-alpha.20220325.10
3.15.1-alpha.20220321.10
3.15.1-alpha.20220315.10
3.15.1-alpha.20220307.10
3.15.1-alpha.20220210.20
3.15.1-alpha.20220208.20
3.15.1-alpha.20220128.20
3.15.12,999
3.15.1-alpha.20220121.30
3.15.1-alpha.20220120.10
3.15.1-alpha.20220113.20
3.15.1-alpha.20220111.20
3.15.1-alpha.20220110.10
3.15.1-alpha.20220106.10
3.15.1-alpha.20220105.10
3.15.1-alpha.20220104.10
3.15.1-alpha.20211220.10
3.15.1-alpha.20211217.10
3.15.1-alpha.20211216.10
3.15.1-alpha.20211214.20
3.15.1-alpha.20211213.10
3.15.1-alpha.20211209.20
3.15.01,496
3.15.0-alpha.20211203.20
3.15.0-alpha.20211202.20
3.14.2-alpha.20211116.32
3.14.2-alpha.20211111.10
3.14.2-alpha.20211101.20
3.14.2-alpha.20211025.10
3.14.2-alpha.20211022.10
3.14.2-alpha.20211019.10
3.14.2-alpha.20211018.20
3.14.2-alpha.20211015.22
3.14.2-alpha.20211011.12
3.14.2-alpha.20211005.10
3.14.2-alpha.20211004.20
3.14.2-alpha.20210930.10
3.14.2-alpha.20210910.20
3.14.2-alpha.20210902.50
3.14.12,346
3.14.1-alpha.20210901.40
3.14.02
3.13.1-alpha.20210830.20
3.13.1-alpha.20210827.20
3.13.1-alpha.20210826.22
3.13.1-alpha.20210824.30
3.13.195
3.13.1-alpha.20210823.50
3.13.1-alpha.20210816.10
3.13.1-alpha.20210813.80
3.13.021
3.12.3-alpha.20210727.10
3.12.3591
3.12.3-alpha.20210722.30
3.12.2422,176
3.12.2-alpha.20210721.22
3.12.2-alpha.20210720.20
3.12.1-alpha.20210719.30
3.12.12
3.12.1-alpha.20210714.20
3.12.0-alpha.20210709.50
3.12.023
3.12.0-alpha.20210708.40
3.12.0-alpha.20210706.30
3.12.0-alpha.20210629.10
3.11.6-alpha.20210628.20
3.11.6-alpha.20210624.20
3.11.6-alpha.20210623.10
3.11.6-alpha.20210611.10
3.11.54
3.11.5-alpha.20210610.30
3.11.40
3.11.4-alpha.20210524.10
3.11.3249
3.11.3-alpha.20210519.10
3.11.3-alpha.20210511.20
3.11.258
3.11.2-alpha.20210507.20
3.11.11
3.11.1-alpha.20210428.10
3.11.1-alpha.20210426.10
3.11.0-alpha.20210422.20
3.11.0254
3.10.66
3.10.5-alpha.20210408.10
3.10.5-alpha.20210331.20
3.10.5-alpha.20210330.20
3.10.5-alpha.20210326.20
3.10.542
3.10.4-alpha.20210325.10
3.10.4-alpha.20210324.20
3.10.40
3.10.3-alpha.20210312.20
3.10.310
3.10.2-alpha.20210311.30
3.10.244
3.10.10
3.10.1-alpha.20210310.20
3.10.0479
3.10.0-alpha.20210308.10
3.10.0-alpha.20210304.10
3.10.0-alpha.20210301.10
3.10.0-alpha.20210226.10
3.10.0-alpha.20210225.10
3.10.0-alpha.20210224.10
3.10.0-alpha.20210223.10
3.10.0-alpha.20210222.10
3.10.0-alpha.20210219.20
3.10.0-alpha.20210212.10
3.10.0-alpha.20210211.10
3.10.0-alpha.20210210.10
3.10.0-alpha.20210209.10
3.10.0-alpha.20210208.10
3.10.0-alpha.20210205.10
3.10.0-alpha.20210204.10
3.10.0-alpha.20210203.50
3.10.0-alpha.20210202.10
3.10.0-alpha.20210201.10
3.10.0-alpha.20210129.10
3.10.0-alpha.20210127.10
3.10.0-alpha.20210126.10
3.9.6-alpha.20210125.10
3.9.5-alpha.20210122.10
3.9.5-alpha.20210119.10
3.9.5-alpha.20210118.20
3.9.5258
3.9.5-alpha.20210115.10
3.9.3-alpha.20210114.10
3.9.3-alpha.20210113.10
3.9.3-alpha.20210112.10
3.9.3-alpha.20210111.10
3.9.3-alpha.20210108.10
3.9.3-alpha.20210107.10
3.9.3-alpha.20210106.10
3.9.3-alpha.20210105.10
3.9.3-alpha.20210104.10
3.9.3-alpha.20201229.10
3.9.3-alpha.20201228.10
3.9.3-alpha.20201224.10
3.9.3-alpha.20201223.10
3.9.3-alpha.20201222.10
3.9.3-alpha.20201221.10
3.9.3-alpha.20201218.10
3.9.3-alpha.20201217.10
3.9.3-alpha.20201216.10
3.9.3-alpha.20201215.10
3.9.3-alpha.20201214.10
3.9.3-alpha.20201211.10
3.9.3-alpha.20201210.10
3.9.3-alpha.20201209.10
3.9.3-alpha.20201208.10
3.9.3-alpha.20201207.10
3.9.3-alpha.20201204.10
3.9.3-alpha.20201203.10
3.9.3-alpha.20201202.10
3.9.3-alpha.20201201.10
3.9.3-alpha.20201130.10
3.9.3-alpha.20201125.10
3.9.3-alpha.20201124.10
3.9.3-alpha.20201123.10
3.9.3-alpha.20201120.10
3.9.3-alpha.20201119.10
3.9.3-alpha.20201118.10
3.9.3-alpha.20201117.10
3.9.3-alpha.20201116.10
3.9.3-alpha.20201113.10
3.9.3-alpha.20201112.10
3.9.3-alpha.20201111.10
3.9.3-alpha.20201110.10
3.9.3-alpha.20201109.30
3.9.3-alpha.20201109.20
3.9.3132
3.9.3-alpha.20201106.10
3.9.3-alpha.20201105.10
3.9.3-alpha.20201104.10
3.9.3-alpha.20201103.10
3.9.3-alpha.20201102.10
3.9.3-alpha.20201030.10
3.9.3-alpha.20201029.10
3.9.3-alpha.20201028.10
3.9.3-alpha.20201027.10
3.9.3-alpha.20201026.10
3.9.3-alpha.20201023.10
3.9.3-alpha.20201022.10
3.9.3-alpha.20201021.10
3.9.3-alpha.20201020.10
3.9.3-alpha.20201019.20
3.9.3-alpha.20201016.10
3.9.3-alpha.20201015.10
3.9.3-alpha.20201014.10
3.9.3-alpha.20201013.10
3.9.3-alpha.20201012.10
3.9.3-alpha.20201009.10
3.9.3-alpha.20201008.10
3.9.3-alpha.20201007.10
3.9.3-alpha.20201006.10
3.9.3-alpha.20201005.10
3.9.3-alpha.20201002.10
3.9.3-alpha.20201001.10
3.9.3-alpha.20200930.10
3.9.3-alpha.20200925.10
3.9.3-alpha.20200924.10
3.9.3-alpha.20200923.10
3.9.3-alpha.20200922.10
3.9.3-alpha.20200921.10
3.9.3-alpha.20200918.10
3.9.3-alpha.20200917.20
3.9.2178
3.9.2-alpha.20200916.10
3.9.2-alpha.20200915.10
3.9.2-alpha.20200914.10
3.9.2-alpha.20200911.10
3.9.2-alpha.20200910.10
3.9.2-alpha.20200909.10
3.9.2-alpha.20200908.10
3.9.2-alpha.20200907.10
3.9.2-alpha.20200904.10
3.9.2-alpha.20200903.10
3.9.2-dev.20200902.10
3.9.2-dev.20200901.10
3.9.2-dev.20200831.10
3.9.2-dev.20200828.20
3.9.1140
3.9.1-dev.20200827.10
3.9.0-dev.20200826.10
3.9.0-dev.20200825.10
3.9.0-dev.20200824.10
3.9.0-dev.20200821.10
3.9.0-dev.20200820.10
3.9.0-dev.20200819.10
3.9.0-dev.20200818.10
3.9.0-dev.20200817.10
3.9.0-dev.20200814.20
3.9.05
3.8.2-dev.20200813.10
3.8.2-dev.20200812.20
3.8.10
3.8.0-dev.20200811.10
3.8.00
3.8.0-dev.20200810.30
3.7.5-dev.20200807.10
3.7.5-dev.20200806.10
3.7.5-dev.20200805.10
3.7.5-dev.20200804.10
3.7.5-dev.20200803.10
3.7.5-dev.20200731.10
3.7.5-dev.20200730.10
3.7.5-dev.20200729.10
3.7.5-dev.20200728.10
3.7.5-dev.20200727.10
3.7.5-dev.20200724.10
3.7.5-dev.20200723.10
3.7.5-dev.20200722.10
3.7.5-dev.20200721.10
3.7.5-dev.20200720.10
3.7.5-dev.20200717.10
3.7.5-dev.20200716.10
3.7.5-dev.20200715.10
3.7.5-dev.20200714.10
3.7.5-dev.20200713.10
3.7.5-dev.20200710.10
3.7.5-dev.20200709.10
3.7.5-dev.20200708.10
3.7.5-dev.20200707.10
3.7.5-dev.20200706.10
3.7.5-dev.20200703.10
3.7.5-dev.20200702.10
3.7.5-dev.20200701.10
3.7.5-dev.20200630.20
3.7.448
3.7.4-dev.20200629.20
3.7.347
3.7.3-dev.20200626.10
3.7.3-dev.20200625.10
3.7.3-dev.20200624.10
3.7.3-dev.20200623.10
3.7.3-dev.20200622.10
3.7.3-dev.20200619.10
3.7.3-dev.20200618.12
3.7.3-dev.20200617.10
3.7.3-dev.20200616.20
3.7.22
3.7.2-dev.20200615.10
3.7.2-dev.20200612.20
3.7.11
3.7.0-dev.20200611.10
3.7.0-dev.20200610.10
3.7.0-dev.20200609.10
3.7.0-dev.20200608.20
3.7.03
3.7.0-dev.20200605.10
3.7.0-dev.20200604.10
3.7.0-dev.20200603.10
3.7.0-dev.20200602.10
3.7.0-dev.20200601.10
3.7.0-dev.20200529.10
3.7.0-dev.20200528.10
3.7.0-dev.20200527.10
3.7.0-dev.20200526.10
3.7.0-dev.20200525.10
3.7.0-dev.20200521.10
3.7.0-dev.20200520.10
3.7.0-dev.20200519.10
3.7.0-dev.20200518.10
3.7.0-dev.20200515.10
3.7.0-dev.20200514.20
3.7.0-dev.20200513.10
3.7.0-dev.20200512.10
3.7.0-dev.20200511.10
3.7.0-dev.20200508.10
3.7.0-dev.20200507.20
3.6.4-dev.20200506.10
3.6.4-dev.20200505.10
3.6.4-dev.20200504.10
3.6.4-dev.20200501.10
3.6.4-dev.20200430.10
3.6.4-dev.20200429.10
3.6.4-dev.20200428.10
3.6.4-dev.20200427.20
3.6.4-dev.20200424.30
3.6.4-dev.20200424.20
3.6.4-dev.20200423.10
3.6.4-dev.20200422.20
3.6.4-dev.20200421.10
3.6.4-dev.20200420.10
3.6.4-dev.20200419.10
3.6.4-dev.20200418.10
3.6.4-dev.20200417.10
3.6.4-dev.20200416.10
3.6.4-dev.20200415.10
3.6.4-dev.20200414.10
3.6.4-dev.20200413.10
3.6.4-dev.20200412.10
3.6.4-dev.20200411.10
3.6.4-dev.20200410.10
3.6.4-dev.20200409.10
3.6.382
3.6.3-dev.20200408.10
3.6.3-dev.20200407.10
3.6.3-dev.20200405.10
3.6.3-dev.20200404.10
3.6.3-dev.20200403.10
3.6.3-dev.20200402.10
3.6.3-dev.20200331.10
3.6.3-dev.20200330.10
3.6.3-dev.20200329.10
3.6.3-dev.20200328.10
3.6.3-dev.20200327.10
3.6.3-dev.20200326.10
3.6.3-dev.20200325.10
3.6.3-dev.20200324.10
3.6.3-dev.20200323.10
3.6.3-dev.20200322.10
3.6.3-dev.20200320.10
3.6.3-dev.20200319.10
3.6.3-dev.20200318.10
3.6.3-dev.20200314.10
3.6.3-dev.20200313.10
3.6.3-dev.20200312.10
3.6.3-dev.20200311.10
3.6.3-dev.20200310.10
3.6.3-dev.20200309.10
3.6.3-dev.20200308.10
3.6.3-dev.20200307.10
3.6.3-dev.20200306.10
3.6.3-dev.20200305.10
3.6.3-dev.20200304.17
3.6.3-dev.20200302.17
3.6.3-dev.20200301.17
3.6.3-dev.20200229.17
3.6.3-dev.20200228.17
3.6.3-dev.20200226.17
3.6.3-dev.20200225.17
3.6.3-dev.20200224.17
3.6.3-dev.20200223.17
3.6.3-dev.20200222.17
3.6.3-dev.20200221.10
3.6.2358
3.6.2-dev.20200220.10
3.6.2-dev.20200219.10
3.6.10
3.6.1-dev.20200218.10
3.6.1-dev.20200217.10
3.6.1-dev.20200216.10
3.6.1-dev.20200215.10
3.6.1-dev.20200214.10
3.6.1-dev.20200213.10
3.6.1-dev.20200212.10
3.6.08
3.5.4-dev.20200211.10
3.5.4-dev.20200210.10
3.5.4-dev.20200209.10
3.5.4-dev.20200208.12
3.5.4-dev.20200206.10
3.5.4-dev.20200205.10
3.5.4-dev.20200204.10
3.5.4-dev.20200203.10
3.5.41
3.5.3-dev.20200129.10
3.5.3-dev.20200128.10
3.5.3-dev.20200124.10
3.5.3-dev.20200122.10
3.5.3-dev.20200121.10
3.5.3-dev.20200120.10
3.5.3-dev.20200117.10
3.5.3-dev.20200116.10
3.5.3-dev.20200115.10
3.5.3-dev.20200114.10
3.5.3-dev.20200113.10
3.5.3-dev.20200112.10
3.5.3-dev.20200111.10
3.5.3-dev.20200110.10
3.5.3-dev.20200109.10
3.5.3-dev.20200108.10
3.5.369
3.5.2-dev.20200107.10
3.5.2-dev.20200105.10
3.5.2-dev.20200104.10
3.5.2-dev.20200103.10
3.5.2-dev.20200102.10
3.5.2-dev.20200101.10
3.5.2-dev.20191231.10
3.5.2-dev.20191230.10
3.5.2-dev.20191229.10
3.5.2-dev.20191228.10
3.5.2-dev.20191227.10
3.5.2-dev.20191226.10
3.5.2-dev.20191225.10
3.5.2-dev.20191224.10
3.5.2-dev.20191223.10
3.5.2-dev.20191222.10
3.5.2-dev.20191221.10
3.5.2-dev.20191220.10
3.5.2-dev.20191219.10
3.5.2-dev.20191217.10
3.5.2-dev.20191216.10
3.5.2-dev.20191215.10
3.5.2-dev.20191214.10
3.5.2-dev.20191213.10
3.5.2-dev.20191212.10
3.5.2-dev.20191211.10
3.5.2-dev.20191210.10
3.5.2-dev.20191209.10
3.5.2-dev.20191208.10
3.5.2-dev.20191207.10
3.5.2-dev.20191206.10
3.5.2-dev.20191205.10
3.5.2-dev.20191204.10
3.5.2610
3.5.1-dev.20191203.10
3.5.1-dev.20191128.10
3.5.1-dev.20191127.10
3.5.1-dev.20191126.10
3.5.10
3.5.1-dev.20191125.10
3.5.0-dev.20191122.10
3.5.00
3.4.2-dev.20191121.10
3.4.2-dev.20191120.10
3.4.2-dev.20191119.10
3.4.2-dev.20191118.10
3.4.2-dev.20191117.10
3.4.2-dev.20191116.10
3.4.2-dev.20191115.10
3.4.20
3.4.10
3.4.05
3.3.61
3.3.50
3.3.41
3.3.31
3.3.20
3.3.10
3.3.00
3.2.023
3.1.10
3.1.02
3.0.40
3.0.30
3.0.20
3.0.10
3.0.00
3.0.0-220
2.1.7373
3.0.0-210
3.0.0-200
2.1.60
3.0.0-190
3.0.0-182
3.0.0-160
3.0.0-150
3.0.0-140
3.0.0-130
3.0.0-120
3.0.0-110
3.0.0-100
3.0.0-90
3.0.0-80
2.1.53
2.1.40
2.1.30
3.0.0-70
2.1.22
3.0.0-60
3.0.0-50
3.0.0-40
3.0.0-30
3.0.0-20
3.0.0-10
3.0.0-00
2.1.10
2.1.00
2.0.55
2.0.40
2.0.30
2.0.20
2.0.12
2.0.01
2.0.0-41
2.0.0-31
2.0.0-01

Package Sidebar

Install

npm i @azure/cosmos

Weekly Downloads

633,020

Version

4.2.0

License

MIT

Unpacked Size

4.14 MB

Total Files

1052

Last publish

Collaborators

  • azure-sdk
  • microsoft1es