Contact Free trial Login

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.

To set up a MongoDB configuration:

+

Fields Description

Servers

This location points to the default MongoDB instance.

Username

MongoDB username.

Password

MongoDB password.

Database

MongoDB database.

Enable Metadata

Enable metadata for collections, documents and files.

Collection metadata samples

Add existing collections to take metadata structure from.

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.

See Also

We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used and to tailor advertising. You can read more and make your cookie choices here. By continuing to use this site you are giving us your consent to do this.