# LogtoResource.withDatabaseSeeding

- Module: [CommunityToolkit.Aspire.Hosting.Logto](/reference/api/typescript/communitytoolkit.aspire.hosting.logto.md)
- Defined on: [LogtoResource](/reference/api/typescript/communitytoolkit.aspire.hosting.logto/logtoresource.md)
- Version: `13.5.0`
- Kind: `method`

Starts Logto by running the database seed command before the application process.

## Definition

```typescript
interface LogtoResource {
  // ... omitted for brevity
  withDatabaseSeeding(): LogtoResource;
}
```

## Signature

```typescript
withDatabaseSeeding(): LogtoResource
```

## Returns

[LogtoResource](/reference/api/typescript/communitytoolkit.aspire.hosting.logto/logtoresource.md) `builder`

## Defined on

- [LogtoResource](/reference/api/typescript/communitytoolkit.aspire.hosting.logto/logtoresource.md) -- `handle`
