addMongoDB
Method
interface IDistributedApplicationBuilder { // ... omitted for brevity addMongoDB( name: string, port?: number, userName?: ParameterResource, password?: ParameterResource): MongoDBServerResource;}Signature
method
addMongoDB builderAdds a MongoDB container resource
addMongoDB( name: string, port?: number, userName?: ParameterResource, password?: ParameterResource): MongoDBServerResourceParameters
namestringThe name of the resource. This name will be used as the connection string name when referenced in a dependency.portnumberoptionalThe host port for MongoDB.userName ParameterResource optionalA parameter that contains the MongoDb server user name, or `null` to use a default value.passwordParameterResource optionalA parameter that contains the MongoDb server password, or `null` to use a generated password.Returns
MongoDBServerResource Applies to
This method applies to the following types: