Skip to content
DocsTry Aspire
DocsTry

withDatabase

Method
📦 CommunityToolkit.Aspire.Hosting.Logto v13.5.0
interface LogtoResource {
// ... omitted for brevity
withDatabase(
postgres: PostgresServerResource,
databaseName?: string): LogtoResource;
}

Signature

methodwithDatabasebuilder
Configures the Logto resource to connect to the specified PostgreSQL database.
withDatabase(
postgres: PostgresServerResource,
databaseName?: string): LogtoResource
postgresPostgresServerResource
databaseNamestringoptional= logto_db
LogtoResource

Applies to

This method applies to the following types: