Aspire.Hosting.MongoDB
Official
📦 Aspire.Hosting.MongoDB v13.4.0 7 Functions
3 Types
3 types and 13 members
Types
Functions
method
addDatabase builder Adds a MongoDB database to the application model.
addDatabase(name: string, databaseName?: string): MongoDBDatabaseResource method
addMongoDB builder Adds a MongoDB container resource
addMongoDB(name: string, port?: number, userName?: ParameterResource, password?: ParameterResource): MongoDBServerResource method
withDataBindMount builder Adds a bind mount for the data folder to a MongoDB container resource.
withDataBindMount(source: string, isReadOnly?: boolean): MongoDBServerResource method
withDataVolume builder Adds a named volume for the data folder to a MongoDB container resource.
withDataVolume(name?: string, isReadOnly?: boolean): MongoDBServerResource method
withHostPort builder Configures the host port that the Mongo Express resource is exposed on instead of using randomly assigned port.
withHostPort(port: number): MongoExpressContainerResource method
withInitFiles builder Copies init files into a MongoDB container resource.
withInitFiles(source: string): MongoDBServerResource method
withMongoExpress builder Adds a MongoExpress administration and development platform for MongoDB to the application model.
withMongoExpress(configureContainer?: (obj: MongoExpressContainerResource) => Promise<void>, containerName?: string): MongoDBServerResource