OptionalendpointCosmos DB account endpoint, e.g. https://acct.documents.azure.com.
OptionalkeyCosmos DB account primary/secondary key.
OptionaldatabaseDefault database id.
OptionalcontainerDefault container id used when a method omits the container.
OptionalclientA pre-built CosmosClient to use instead of connecting via the driver.
Connection options for
CosmosDbStore.endpoint/keyauthenticate against the Cosmos DB account.databaseselects the default database andcontainerthe default container that CRUD methods target when no explicit container is passed. When a pre-builtclientis supplied (e.g. in tests),connect()uses it directly and skips loading the@azure/cosmosdriver.