Link a MongoDB Data Source¶
On this page
- Navigate to the Data Source Management Screen
- Link a New Data Source
- Save the Linked Data Source
- Pull the Latest Version of Your App
- Create a Data Source Configuration Directory
- Add a Data Source Configuration File
- Deploy the Data Source Configuration
- Linked Data Lake Considerations
- Work with a Linked Data Source
You can use MongoDB Realm to work with a data source -- either a MongoDB Atlas cluster or Data Lake associated with the same Atlas project as your Realm app. To connect to a data source through Realm, you must first link it to a new MongoDB service in your application.
You can create a MongoDB service and link a data source to your Realm app through the Realm UI or with an import/export configuration directory. Select the tab below that corresponds to the method you want to use.
In order to use Realm Sync, your Atlas cluster must use MongoDB version 4.4.
Realm will immediately begin the process of linking to the data source, which could take up to five minutes. Once Realm is finished linking to the data source, you can start working with the data.
Linked Data Lake Considerations¶
For the most part, you can interact with a linked Data Lake just as you would with a linked Atlas cluster. However, there are some caveats to keep in mind when working with a Data Lake:
Work with a Linked Data Source¶
The following pages demonstrate how to start working with your linked data source from a function:
You can access your MongoDB data source remotely from a client. See the following sections of the Client Guides: