Package version:
Creates a new CosmosClient object from a connection string. Your database connection string can be found in the Azure Portal
Creates a new CosmosClient object. See CosmosClientOptions for more details on what options you can use.
bag of options; require at least endpoint and auth to be configured
Readonly
databasesUsed for creating new databases, or querying/reading all databases.
Use .database(id)
to read, replace, or delete a specific, existing database by id.
Readonly
offersUsed for querying & reading all offers.
Use .offer(id)
to read, or replace existing offers.
Used for reading, updating, or deleting a existing database by id or accessing containers belonging to that database.
This does not make a network call. Use .read
to get info about the database after getting the Database object.
The id of the database.
Get information about the current DatabaseAccount (including which regions are supported, etc.)
Optional
options: RequestOptions
Provides a client-side logical representation of the Azure Cosmos DB database account. This client is used to configure and execute requests in the Azure Cosmos DB database service.
Example: Instantiate a client and create a new database
Example: Instantiate a client with custom Connection Policy