Skip to main content

MongoDB

MongoDB is a document database that stores data in flexible, JSON-like documents.

Experimental

The legacy query federation documentation has been retired and might not be updated. The configurations mentioned in this content are not officially endorsed or tested by Databricks. If Lakehouse Federation supports your source database, Databricks recommends using that instead.

The following notebook shows you how to read and write data to MongoDB Atlas, the hosted version of MongoDB, using Apache Spark. The MongoDB Connector for Spark was developed by MongoDB.

MongoDB notebook

Open notebook in new tab