# MongoDBServerResource.WithMongoExpress

- Module: [Aspire.Hosting.MongoDB](/reference/api/go/aspire.hosting.mongodb.md)
- Defined on: [MongoDBServerResource](/reference/api/go/aspire.hosting.mongodb/mongodbserverresource.md)
- Version: `17.0.0`
- Kind: `method`

Adds a MongoExpress administration and development platform for MongoDB to the application model.

## Remarks

This version of the package defaults to the tag of the container image.

## Definition

```go
type MongoDBServerResource interface {
    // ... omitted for brevity
    WithMongoExpress(options ...*WithMongoExpressOptions) MongoDBServerResource
}
```

## Signature

```go
WithMongoExpress(options ...*WithMongoExpressOptions) MongoDBServerResource
```

## Parameters

- `options` (`...*WithMongoExpressOptions`) -- optional settings, see [Options](#options)

## Options

Optional parameters are passed in a trailing `options ...*WithMongoExpressOptions` argument.

- `ConfigureContainer` (`func(obj MongoExpressContainerResource)`) `callback` -- Configuration callback for Mongo Express container resource.
- `ContainerName` (`*string`) -- The name of the container (Optional).

## Returns

[`MongoDBServerResource`](/reference/api/go/aspire.hosting.mongodb/mongodbserverresource.md) -- The resource builder.

Returns a handle; failures surface later via `Err()`.

## Defined on

- [MongoDBServerResource](/reference/api/go/aspire.hosting.mongodb/mongodbserverresource.md) -- `handle`
