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

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.

You can also access Microsoft Azure CosmosDB using the MongoDB API. See Introduction to Azure Cosmos DB: MongoDB API.