AzureCosmosVCoreDocumentStore
Defined in: packages/providers/storage/azure/src/docStore/AzureCosmosMongovCoreDocumentStore.ts:13
Extends
KVDocumentStore
Constructors
Constructor
new AzureCosmosVCoreDocumentStore(
__namedParameters
):AzureCosmosVCoreDocumentStore
Defined in: packages/providers/storage/azure/src/docStore/AzureCosmosMongovCoreDocumentStore.ts:14
Parameters
__namedParameters
AzureCosmosVCoreDocumentStoreArgs
Returns
AzureCosmosVCoreDocumentStore
Overrides
KVDocumentStore.constructor
Methods
fromMongoClient()
static
fromMongoClient(mongoClient
,dbName
,collectionName
):AzureCosmosVCoreDocumentStore
Defined in: packages/providers/storage/azure/src/docStore/AzureCosmosMongovCoreDocumentStore.ts:33
Static method for creating an instance using a MongoClient.
Parameters
mongoClient
MongoClient
MongoClient instance
dbName
string
= DEFAULT_DATABASE
Database name
collectionName
string
= DEFAULT_COLLECTION
Collection name
Returns
AzureCosmosVCoreDocumentStore
Instance of AzureCosmosVCoreDocumentStore
Example
fromConnectionString()
static
fromConnectionString(connectionString
,dbName
,collectionName
):AzureCosmosVCoreDocumentStore
Defined in: packages/providers/storage/azure/src/docStore/AzureCosmosMongovCoreDocumentStore.ts:61
Static method for creating an instance using a connection string.
Parameters
connectionString
string
MongoDB connection string
dbName
string
= DEFAULT_DATABASE
Database name
collectionName
string
= DEFAULT_COLLECTION
Collection name
Returns
AzureCosmosVCoreDocumentStore
Instance of AzureCosmosVCoreDocumentStore