---
url: >-
  https://node-ts.github.io/bus/api/bus-mongodb/interfaces/MongodbConfiguration.md
---
[API reference](../../index.md) / [@node-ts/bus-mongodb](../index.md) / MongodbConfiguration

# Interface: MongodbConfiguration

Defined in: [packages/bus-mongodb/src/mongodb-configuration.ts:4](https://github.com/node-ts/bus/blob/2e6cf65c27833b707ae31ee623cfb6343770f434/packages/bus-mongodb/src/mongodb-configuration.ts#L4)

Provides configuration for creating and configuring a Mongodb persistence provider.

## Properties

| Property | Type | Description | Defined in |
| ------ | ------ | ------ | ------ |
| <a id="property-connection"></a> `connection` | `string` | The mongodb connection string to use. This can be a single server, a replica set, or a mongodb+srv connection. | [packages/bus-mongodb/src/mongodb-configuration.ts:8](https://github.com/node-ts/bus/blob/2e6cf65c27833b707ae31ee623cfb6343770f434/packages/bus-mongodb/src/mongodb-configuration.ts#L8) |
| <a id="property-databasename"></a> `databaseName` | `string` | The database name to create workflow collections inside. | [packages/bus-mongodb/src/mongodb-configuration.ts:13](https://github.com/node-ts/bus/blob/2e6cf65c27833b707ae31ee623cfb6343770f434/packages/bus-mongodb/src/mongodb-configuration.ts#L13) |
