Built-in apps

MongoDB

8min



MongoDB is a document database. With the MongoDB app in , you can manage documents in your MongoDB account.

Requirements

To use the MongoDB app in , you must have a MongoDB account and a running instance of a MongoDB database configured with public access to the Internet.

Connect MongoDB and

To get started, you must first create a connection between MongoDB and , allowing the two services to communicate.

To create the connection, you need to:

Obtain your connection string in Mongo DB

Before you create the connection in , you should first get the connection string in your MongoDB account.

You can use the most recent driver type and connect to a serverless instance from Make.

To obtain the connection string:

1

Log in to your MongoDB account.

2

In the left sidebar, click Database > Connect.

3

Click Connect your application > Drivers.

Connection string step 3

4

Select Node.js driver version 4.1.

Connection string step 4

5

Replace the <username>, <password> with your account credentials, add the database name, and paste the connection string in the app's connection screen.mongodb+srv://<username>:<password>@myclass.9fnerah.mongodb.net/<database name>?retrywrites=true&w=majority

Connection string step 5

6

Copy your Connection string and store it in a safe place.

You'll use this value in the Connection string field in .

Whitelist IP addresses in MongoDB

1

Log in to your MongoDB account.

2

Make sure that MongoDebug is shown in the upper left corner dropdown under the Atlas logo.

3

In the left sidenav, click Network Access.

MongoDB Network Access tab

4

Click + ADD IP ADDRESS.

5

For the Access List Entry field, enter the IP address and click Confirm.

Create the connection in

Once you have your MongoDB connection string, you're ready to create the connection in .

To create the connection:

1

Log in to your account, add an MongoDB module to your , and click Create a connection.

2

Optional: In the Connection name field, enter a name for the connection.

3

In the Connection string field, enter the connection string copied above.

4

Click Save.

5

If prompted, authenticate your account and confirm access.

You have successfully created the connection and can now use the MongoDB app in your . If you want to make changes to your connection in the future, follow the steps here.

MongoDB modules

After connecting to the MongoDB app, you can use the following types of modules to build your :

MongoDB resources