# Aspire.Hosting.MongoDB

- Module: `Aspire.Hosting.MongoDB`
- Version: `13.2.0`
- Source: [GitHub](https://github.com/microsoft/aspire)
- Functions: `7`
- Types: `3`

## Types

- [MongoDBDatabaseResource](/reference/api/typescript/aspire.hosting.mongodb/mongodbdatabaseresource.md) -- `handle` - 5 members
- [MongoDBServerResource](/reference/api/typescript/aspire.hosting.mongodb/mongodbserverresource.md) -- `handle` - 19 members
- [MongoExpressContainerResource](/reference/api/typescript/aspire.hosting.mongodb/mongoexpresscontainerresource.md) -- `handle` - 1 members

## Functions

- [addDatabase](/reference/api/typescript/aspire.hosting.mongodb/adddatabase.md) -- `method` -- Adds a MongoDB database resource
- [addMongoDB](/reference/api/typescript/aspire.hosting.mongodb/addmongodb.md) -- `method` -- Adds a MongoDB container resource
- [withDataBindMount](/reference/api/typescript/aspire.hosting.mongodb/withdatabindmount.md) -- `method` -- Adds a bind mount for the MongoDB data folder
- [withDataVolume](/reference/api/typescript/aspire.hosting.mongodb/withdatavolume.md) -- `method` -- Adds a named volume for the MongoDB data folder
- [withHostPort](/reference/api/typescript/aspire.hosting.mongodb/withhostport.md) -- `method` -- Sets the host port for the Mongo Express resource
- [withInitFiles](/reference/api/typescript/aspire.hosting.mongodb/withinitfiles.md) -- `method` -- Copies init files into a MongoDB container
- [withMongoExpress](/reference/api/typescript/aspire.hosting.mongodb/withmongoexpress.md) -- `method` -- Adds a MongoExpress administration platform for MongoDB
