MongoDB
The MongoDB node allows you to automate work in MongoDB, and integrate MongoDB with other applications. Robbot Automation has built-in support for a wide range of MongoDB credentials, including aggregating, updating, finding, deleting, and getting documents.
On this page, you'll find a list of operations the MongoDB node supports and links to more resources.
!!! note "Credentials" Refer to MongoDB credentials for guidance on setting up authentication.
!!! note "Examples and templates" For usage examples and templates to help you get started, take a look at Robbot Automation's MongoDB list.
Operations
- Aggregate documents
- Delete documents
- Find documents
- Find and replace documents
- Find and update documents
- Insert documents
- Update documents
Example Usage
This workflow allows you to insert a document into a MongoDB collection. You can also find the workflow on the website. This example usage workflow would use the following three nodes.
- Start Node
- [Set](/integrations/builtin/core-nodes/Robbot Automation-nodes-base.set/)
1. Start node
The start node exists by default when you create a new workflow.
2. Set node
- Click on the Add Value button and select 'String' from the dropdown list.
- Enter
my_key
in the Name field. - Enter
my_value
in the Value field.
3. MongoDB node
- First of all, you'll have to enter credentials for the MongoDB node. You can find out how to do that here.
- Select 'Insert' from the Operation dropdown list.
- Enter the name of your MongoDB collection in the Collection field.
- Enter
my_key
in the Fields field. - Click on Save to run the workflow.