Neurelo Build Docs
Neurelo Build Docs
  • Introduction
    • Core Concepts
    • Key Features
  • Getting Started
    • Sign-in/Sign-up
    • Dashboard
      • Collapsible Sidebar
      • Light/Dark Mode
      • Account Settings
      • Audit Events
      • User Management
        • Permissions (Member v/s Admin)
      • Org Settings
    • Starting your Neurelo Project
      • Quick Start Guide
      • Step 1 - Add a Data Source
      • Step 2 - Build Definitions
      • Step 3 - Create an Environment
      • Step 4 - Create an API Key
      • Step 5 - Start Runners
      • Try your Neurelo APIs
  • "How to" Videos
    • Product Overview
    • Neurelo APIs & SDKs
    • Project Setup
    • Definitions
    • Environments
    • Data Sources
    • Organization Management
    • Creating and Using Custom Queries
    • Using the Schema Builder to build Relationships
    • Mock Data Generation
  • Definitions
    • Neurelo Schema Editor
      • Schema Builder
      • JSON/YAML Editor
      • Schema Visualization: Entity-Relationship Diagram (ERD)
    • Custom APIs for Complex Queries
      • Write and Commit Custom Queries
      • AI-Assisted Query Generation
      • Deploying Custom API Endpoints
      • Using Variables in your Custom Query
    • Branches and Commits
    • API Docs
  • Environments
    • Creating a new Environment
    • API Playground
    • Observability
    • Migrations
    • API Keys
  • Data Sources
    • PostgreSQL
    • MySQL
    • MongoDB
  • Guides
    • Provisioning Cloud Databases for using with Neurelo
      • PostgreSQL
        • AWS RDS (PostgreSQL)
      • MySQL
        • AWS RDS (MySQL)
      • MongoDB Atlas
    • Mock Data Generation
    • Wipe Data Source
    • Remote Git Repository for Definitions
      • Connecting a Remote Git Repo
      • Creating Commits from Neurelo
      • Syncing Branches
    • Data Viewer
    • Environment/Data Source Tags
    • How to work with Embedded documents and References in MongoDB
    • How to download and use the Postman Collection for your Project
    • Building Python applications with Postgres and FastAPI
    • CI Integration using Neurelo CLI
    • Schema Migrations
    • Schema AI Assist
    • Auto-Introspection
    • Access Policies
    • User Auth
      • Google
      • GitHub
      • GitLab
    • MongoDB Atlas - Migrate GraphQL to Neurelo
    • MongoDB Atlas - Migrate REST Data APIs to Neurelo
  • MongoDB Atlas - Migrate REST Data APIs to Neurelo
  • MongoDB Atlas - Migrate GraphQL APIs to Neurelo
  • Neurelo Schema Language (NSL)
    • Example 1 - DVD Rentals
    • Example 2 - Simple "Posts" App
    • Example 3 - Bookstore
  • Neurelo API Reference (REST)
    • Examples of Neurelo Auto-Generated REST API endpoints
      • Example 1 - Simple “Posts” application
      • Example 2 - "DVD Rentals" application
      • Example 3 - "Bookstore” application
      • cURL API Examples
  • Neurelo API Reference (GraphQL)
  • SDKs
    • TypeScript / JavaScript SDK
    • Go SDK
    • Python SDK
      • Python SDK Tutorial -- News Application
        • News Application using Neurelo’s Python SDKs
  • CLI (Preview Version)
  • Self-Hosted Neurelo Gateways
  • Tutorials
    • Building a Real Time Chat Application with Neurelo and MongoDB using Python
    • Building A Financial Terminal with Neurelo and MongoDB in Rust
    • Building a Restaurant Management System with Neurelo and MongoDB using GraphQL in just a few minutes
    • Bringing Neurelo’s Data APIs to Life Instantly with MySQL
  • Project Examples
  • References
    • Supported Databases
    • Supported OS and Browsers
  • Support
Powered by GitBook
On this page
  • Overview
  • Adding a Data Source in a Neurelo Project
  • Selecting a Gateway and Allowing Neurelo IP Addresses:
  • Testing and Saving the Data Source
  1. Data Sources

MongoDB

PreviousMySQLNextGuides

Last updated 7 months ago

Overview

You can attach a MongoDB database to your project either by following the Quick Start guide or by going to the "Data Source" section of your project. You can connect any reachable MongoDB instance (Managed or Self-hosted) to the project. For managed instances, you can use .

Please refer to guides on .

If you are using MongoDB Atlas, please review MongoDB Atlas

of MongoDB

Adding a Data Source in a Neurelo Project

  • Click on the "Data Sources" option from the left navigation bar in your project.

  • Click on the "New" button.

  • Upon clicking, a popup window will appear, asking you to name your data source and provide the connection details

The connection string needs to be in the following format -

mongodb://username:password@host:port/database

The database name must be included in the string. If the provided string does not include the database name, please add it manually

If you have any special characters ('$', ':', '/', '?', '#', '[', ']', '@') in your password, please make sure that the string is correctly encoded. Alternatively, you can use the "Advanced Settings" option and input the password with special characters there instead.

  • Using Connection Details: If you don't have the fully formed Connection String and need to enter the Connection Details instead, please click on "Advanced Settings" and enter the data in the relevant fields

    • Host: The URL endpoint of your database

    • Port: The port number for the database instance

    • Database: The exact name of the database in the instance to be used

    • Username: The username to be used for connecting to the database

    • Password: The password to be used for connecting to the database

Selecting a Gateway and Allowing Neurelo IP Addresses:

Please select the Gateway that is located nearest to the database. Below the connection details, there’s an option to select a Gateway. Choose one that best suits your operational needs.

If you have a firewall or security group configured in front of the database, you may need add Neurelo IPs to the allowed list so that Neurelo can connect to the database. There are multiple IPs for the selected gateway, all of which need to be permitted in the firewall or security group configuration

If you needed to configure Neurelo IPs to connect to your database, please make sure you spin up Environments that will use this database in the same gateway as the configured IPs selected.

Testing and Saving the Data Source

To make sure that all the information has been correctly entered and the Neurelo IPs have been added to the allowlist, you can test the connection by clicking on "Test Connection", You will receive a pop up saying "Connection test in progress" and once the connection has been tested successfully, you receive a message "Connection test completed successfully".

Once the connection has been successfully tested, you can proceed to click on the "Submit" button. This will create a new data source for your project. You can always come back to this Data Source section to verify database details including the health check history.

MongoDB Atlas
provisioning managed databases in the cloud
Supported Versions