MongoDB

With the MongoDB modules in {{Make}}, you can insert, update, retrieve, search, and delete documents.

To use any of the above modules, you need to have a running instance of MongoDB configured for public access from the Internet.

Connect {{Make}} to your MongoDB Database Deployment on Atlas

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

  1. Log in to your MongoDB account. In the left menu, click Database > Connect.

    mongodb-5.png
  2. Click Connect your application > Drivers.

    mongodb-8.png
  3. Select Node.js driver version 4.1.

    mongodb-10.png
  4. 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

    mongodb-9.png

You now have the connection string to connect the MongoDB app with {{Make}}.

Build MongoDB Scenarios

After connecting the app, you can perform the following actions:

  • Delete a document

  • Insert a document

  • Retrieve a document

  • Update a document

  • Search documents

Date/time queries

To perform a date/time query, use the ISO 8601 format with milliseconds and no time zone offset. E.g. 2019-05-06T16:19:03.123Z.