MongoDB
| MongoDB is a document database. With the MongoDB app in , you can manage documents in your MongoDB account. |
---|
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.
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:
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:
Log in to your MongoDB account.
In the left sidebar, click Database > Connect.
Click Connect your application > Drivers.

Select Node.js driver version 4.1.

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

Copy your Connection string and store it in a safe place.
You'll use this value in the Connection string field in .
Log in to your MongoDB account.
Make sure that MongoDebug is shown in the upper left corner dropdown under the Atlas logo.
In the left sidenav, click Network Access.

Click + ADD IP ADDRESS.
For the Access List Entry field, enter the IP address and click Confirm.
Once you have your MongoDB connection string, you're ready to create the connection in .
To create the connection:
Log in to your account, add an MongoDB module to your , and click Create a connection.
Optional: In the Connection name field, enter a name for the connection.
In the Connection string field, enter the connection string copied above.
Click Save.
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.
After connecting to the MongoDB app, you can use the following types of modules to build your :