Docs Menu

Link a MongoDB Data Source

On this page

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.

Note
Version 4.4 Required for Sync

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.

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:

The following pages demonstrate how to start working with your linked data source from a function:

Tip

You can access your MongoDB data source remotely from a client. See the following sections of the Client Guides:

Give Feedback
© 2021 MongoDB, Inc.

About

  • Careers
  • Legal Notices
  • Privacy Notices
  • Security Information
  • Trust Center
© 2021 MongoDB, Inc.