# WithMongoExpress

- Module: [Aspire.Hosting.MongoDB](/reference/api/go/aspire.hosting.mongodb.md)
- Version: `17.0.0`
- Kind: `method`
- Defined on: [`MongoDBServerResource`](/reference/api/go/aspire.hosting.mongodb/mongodbserverresource.md)
- Source: [GitHub](https://github.com/microsoft/aspire/tree/2d325b13709752ba6d9a943635c5e2940a2530c0)

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
func (MongoDBServerResource) 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()`.

## Applies to

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