MongoDB Design Center Configuration - Mule 4

Design Center enables you to create apps visually. To use Design Center, work with your Anypoint Platform administrator to ensure that you have a Design environment. For more information, see the Flow Designer Tour.

To create an app in Design Center:

  • Configure the input source (trigger) for your app.

  • Add the connector as a component to process the input for the app.

For information on Design Center field values, see the MongoDB Connector Reference.

Configure the Trigger

  1. In Design Center, click Create.

  2. Click Create new application.

  3. Specify a value for Project name.

  4. Exit from Let’s get started by clicking Go straight to canvas.

  5. Click the name of the trigger card.

  6. If you are using the MongoDB connector as an input source trigger, choose an operation:

    • Deleted Objects - The trigger your app uses when a MongoDB user deletes an object.

    • Modified Objects - The trigger your app uses when a MongoDB user modifies an object.

    • New Object - The trigger your app uses when a MongoDB user creates an object.

      Alternatively, you can trigger your app using the HTTP Listener or the Scheduler.

  7. If you are using the MongoDB connector as a trigger, refer to these reference sections for values:

Design Center automatically saves changes you make in a session.

Configure the Target Component

  1. Click + next to the trigger card.

  2. In Select a component, search for the connector name.

  3. Select the connector name.

  4. Select an operation for the connector.

  5. Enter the required values in the General tab.

  6. If needed, enter values for other tabs.

  7. Specify access information to the connector resource.

  8. Click Test Connection to ensure you have access to MongoDB.

Complete these fields to set up a MongoDB configuration:


Fields Description

Required Libraries

Reference to the MongoDB Driver. The version must be 3.11 or higher.


List of server addresses to use for the connection.


MongoDB database


MongoDB username


MongoDB password

To make a simple flow, you can select these operations:

  • Insert Document:

    Fields Description

    Collection Name

    This location points to the collection you want. This collection needs to be created in the database which you have selected before.

  • Find a document and update it.

  • Remove the document.

Was this article helpful?

💙 Thanks for your feedback!

Edit on GitHub