AzureCosmosVCoreDocumentStore
Defined in: .build/typescript/packages/providers/storage/azure/src/docStore/AzureCosmosMongovCoreDocumentStore.ts:13
Extends
Section titled “Extends”KVDocumentStore
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new AzureCosmosVCoreDocumentStore(
__namedParameters):AzureCosmosVCoreDocumentStore
Defined in: .build/typescript/packages/providers/storage/azure/src/docStore/AzureCosmosMongovCoreDocumentStore.ts:14
Parameters
Section titled “Parameters”__namedParameters
Section titled “__namedParameters”AzureCosmosVCoreDocumentStoreArgs
Returns
Section titled “Returns”AzureCosmosVCoreDocumentStore
Overrides
Section titled “Overrides”KVDocumentStore.constructor
Methods
Section titled “Methods”fromMongoClient()
Section titled “fromMongoClient()”
staticfromMongoClient(mongoClient,dbName,collectionName):AzureCosmosVCoreDocumentStore
Defined in: .build/typescript/packages/providers/storage/azure/src/docStore/AzureCosmosMongovCoreDocumentStore.ts:33
Static method for creating an instance using a MongoClient.
Parameters
Section titled “Parameters”mongoClient
Section titled “mongoClient”MongoClient
MongoClient instance
dbName
Section titled “dbName”string = DEFAULT_DATABASE
Database name
collectionName
Section titled “collectionName”string = DEFAULT_COLLECTION
Collection name
Returns
Section titled “Returns”AzureCosmosVCoreDocumentStore
Instance of AzureCosmosVCoreDocumentStore
Example
Section titled “Example”const mongoClient = new MongoClient("mongodb://localhost:27017");const indexStore = AzureCosmosVCoreDocumentStore.fromMongoClient(mongoClient, "my_db", "my_collection");fromConnectionString()
Section titled “fromConnectionString()”
staticfromConnectionString(connectionString,dbName,collectionName):AzureCosmosVCoreDocumentStore
Defined in: .build/typescript/packages/providers/storage/azure/src/docStore/AzureCosmosMongovCoreDocumentStore.ts:61
Static method for creating an instance using a connection string.
Parameters
Section titled “Parameters”connectionString
Section titled “connectionString”string
MongoDB connection string
dbName
Section titled “dbName”string = DEFAULT_DATABASE
Database name
collectionName
Section titled “collectionName”string = DEFAULT_COLLECTION
Collection name
Returns
Section titled “Returns”AzureCosmosVCoreDocumentStore
Instance of AzureCosmosVCoreDocumentStore
Example
Section titled “Example”const indexStore = AzureCosmosVCoreDocumentStore.fromConnectionString("mongodb://localhost:27017", "my_db", "my_collection");