Skip to content

MongoDB#

MongoDB is a cross-platform document-oriented database program developed by MongoDB Inc. It is classified as a NoSQL database program. MongoDB uses JSON-like documents with optional schemas.

Credentials

You can find authentication information for this node here.

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 - Set - MongoDB

The final workflow should look like the following image.

A workflow with the MongoDB node

1. Start node#

The start node exists by default when you create a new workflow.

2. Set node#

  1. Click on the Add Value button and select 'String' from the dropdown list.
  2. Enter my_keyin the Name field.
  3. Enter my_value in the Value field.

3. MongoDB node#

  1. First of all, you'll have to enter credentials for the MongoDB node. You can find out how to do that here.
  2. Select 'Insert' from the Operation dropdown list.
  3. Enter the name of your MongoDB collection in the Collection field.
  4. Enter my_key in the Fields field.
  5. Click on Execute Node to run the workflow.