Skip to main content
Available starting with FlowX.AI 5.6.0Unmanaged MongoDB requires MongoDB 6.0 or later.

Overview

Unmanaged MongoDB is a data source type that lets you connect FlowX workflows to external MongoDB databases that your organization manages independently. Unlike the built-in FlowX Database — which provisions and manages MongoDB collections automatically — Unmanaged MongoDB connects to existing databases and collections you control.

Use your infrastructure

Connect to MongoDB instances you already manage, including Atlas, self-hosted, or cloud-managed deployments

Same operations

Use the same CRUD operations (find, insert, update, delete) as FlowX Database

Connection discovery

Browse available databases and collections directly from the Designer after connecting

Connection pooling

Configure pool size, idle timeouts, and maintenance frequency per data source

Managed vs unmanaged MongoDB

AspectFlowX Database (managed)Unmanaged MongoDB
Collection creationAutomatic — FlowX creates and manages collectionsManual — you provide an existing collection
Schema managementDefined in FlowX DesignerOptional — you manage schemas externally
Index managementCRUD via Designer UIYou manage indexes externally
ConnectionInternal, handled by FlowXYou provide a connection URI
AuthInternalYour MongoDB auth (SCRAM-SHA-256, LDAP, X.509)
Use caseData sharing between FlowX processesIntegrate with existing MongoDB infrastructure
Use FlowX Database when you need FlowX to manage the full lifecycle of your data. Use Unmanaged MongoDB when you need to read from or write to databases that exist outside FlowX.

Prerequisites

  • A MongoDB 6.0+ instance accessible from your FlowX deployment
  • An existing database and collection on the target instance
  • A MongoDB user with appropriate permissions (read, write, or both)
  • Network connectivity between FlowX services and the MongoDB instance

Creating an Unmanaged MongoDB data source

1

Open Data Sources

Navigate to IntegrationsData Sources in your project.
2

Create a new data source

Click New Data Source and select Unmanaged MongoDB as the type.
3

Configure the connection

Enter the MongoDB connection URI:
mongodb+srv://username:password@cluster.example.net
Or standard format:
mongodb://username:password@host:27017
4

Test the connection

Click Test Connection to verify connectivity and credentials.
5

Select database and collection

After a successful connection test, browse available databases and select the target database. Then browse and select the target collection.
6

Configure authorization (optional)

In the Authorization tab, configure authentication if not embedded in the connection URI.
7

Save

Click Save to create the data source.
The target collection must already exist on the MongoDB instance. FlowX does not create collections on unmanaged databases.

Connection pool configuration

Each Unmanaged MongoDB data source has its own connection pool. You can tune pool settings in the data source Settings tab:
SettingDescriptionDefault
Min pool sizeMinimum number of connections maintained0
Max pool sizeMaximum number of concurrent connections100
Max idle timeHow long an idle connection stays open60000 ms (1 min)
Max lifetimeMaximum lifetime of a connection0 (unlimited)
Wait queue timeoutHow long a request waits for an available connection120000 ms (2 min)
Maintenance frequencyHow often the pool checks for idle connections to close60000 ms (1 min)
For production workloads, set Min pool size to match your baseline concurrent usage to avoid connection warm-up latency.

Operations

Unmanaged MongoDB supports the same operations as FlowX Database:
OperationDescription
findRetrieve multiple documents based on criteria
findOneRetrieve a single document
insertOneAdd a single document
insertManyAdd multiple documents at once
updateOneModify a single document
updateManyModify multiple documents at once
deleteOneRemove a single document
deleteManyRemove multiple documents at once
Operations are configured the same way as FlowX Database operations — with filters, projections, sorting, and parameter substitution using ${paramName} syntax. For details on configuring each operation, see the FlowX Database operations documentation.

Using in workflows

Unmanaged MongoDB data sources are used in workflows the same way as other data sources:
1

Create operations

Define operations on the data source (find, insert, update, delete).
2

Add a Data Source node

Add a Data Source node to your workflow.
3

Select the data source

Select the Unmanaged MongoDB data source and operation.
4

Map parameters

Map input/output parameters in the data mapper.

Deployment

No additional microservices are required. Unmanaged MongoDB uses the existing nosql-db-runner service to execute operations against your external MongoDB instance. Ensure the nosql-db-runner service has network access to your MongoDB instance. If your MongoDB is behind a firewall, configure the appropriate network rules.
Last modified on March 16, 2026