Class: MongoDBAtlasVectorStore
March 19, 2026 ยท View on GitHub
@cdklabs/generative-ai-cdk-constructs
@cdklabs/generative-ai-cdk-constructs / mongodbAtlas / MongoDBAtlasVectorStore
Class: MongoDBAtlasVectorStore
Construct for MongoDB Atlas vector store
Constructors
Constructor
new MongoDBAtlasVectorStore(
props):MongoDBAtlasVectorStore
Creates a new instance of the MongoDBAtlas class
Parameters
props
The properties for the MongoDB Atlas vector store
Returns
MongoDBAtlasVectorStore
Properties
collectionName
readonlycollectionName:string
The name of the collection
credentialsSecretArn
readonlycredentialsSecretArn:string
The ARN of the secret containing MongoDB Atlas credentials
databaseName
readonlydatabaseName:string
The name of the database
endpoint
readonlyendpoint:string
The endpoint URL for MongoDB Atlas
endpointServiceName?
readonlyoptionalendpointServiceName?:string
The name of the endpoint service
fieldMapping
readonlyfieldMapping:MongoDbAtlasFieldMapping
The field mapping for MongoDB Atlas
textIndexName?
readonlyoptionaltextIndexName?:string
The name of the text index
vectorIndexName
readonlyvectorIndexName:string
The name of the vector index