MongoDB Connection
Connect MongoDB to store, query, and manage document data in your workflows.
Required Credentials
- Connection String
- Database (optional default)
Setup Steps
MongoDB Atlas (Cloud)
- Go to MongoDB Atlas
- Create a cluster or use existing
- Go to "Database Access" and create a user
- Go to "Network Access" and whitelist your IP (or 0.0.0.0/0 for all)
- Click "Connect" on your cluster
- Select "Connect your application"
- Copy the connection string
- Replace
<password>with your database user password - Add it to your Workflow Builder connections
Self-hosted MongoDB
Use format: mongodb://username:password@host:port/database
Features
- Find documents with filters
- Insert new documents
- Update existing documents
- Delete documents
- Aggregate queries
Best Practices
- Use indexes for frequently queried fields
- Limit query results with pagination
- Handle connection timeouts gracefully
- Use proper authentication