Skip to content
DocsTry Aspire
DocsTry

MongoDBDatabaseResource

Handle
📦 Aspire.Hosting.MongoDB v13.4.0
interface MongoDBDatabaseResource
extends IExpressionValue,
IManifestExpressionProvider,
IResource,
IResourceWithConnectionString,
IResourceWithParent,
MongoDBServerResource]],
IValueProvider,
IValueWithReferences {
readonly connectionStringExpression: ReferenceExpression;
readonly databaseName: string;
readonly parent: MongoDBServerResource;
readonly uriExpression: ReferenceExpression;
}

Properties

propertyconnectionStringExpressionReferenceExpressionget
Gets the connection string expression for the MongoDB database.
propertydatabaseNamestringget
Gets the database name.
propertyparentMongoDBServerResourceget
Gets the parent MongoDB container resource.
propertyuriExpressionReferenceExpressionget
Gets the connection URI expression for the MongoDB database.