Logo
Classes

AzureCosmosVCoreDocumentStore

Defined in: providers/storage/azure/src/docStore/AzureCosmosMongovCoreDocumentStore.ts:13

Extends

  • KVDocumentStore

Constructors

new AzureCosmosVCoreDocumentStore()

new AzureCosmosVCoreDocumentStore(__namedParameters): AzureCosmosVCoreDocumentStore

Defined in: 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: 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

const mongoClient = new MongoClient("mongodb://localhost:27017");
const indexStore = AzureCosmosVCoreDocumentStore.fromMongoClient(mongoClient, "my_db", "my_collection");

On this page