Main Content

Document Database

Explore and manage collections of documents in MongoDB® using MongoDB C++ interface

Using the MongoDB C++ interface, you can connect to MongoDB, access documents, and import the stored data into the MATLAB® workspace for analysis. You can also run MongoDB queries against a document collection in MongoDB. To add data to document collections, you can export MATLAB tables, structures, and objects into MongoDB.

Database Toolbox™ includes the MongoDB C driver in the installation.

Objects

connectionMongoDB C++ interface connection (Since R2021b)

Functions

expand all

mongocCreate MongoDB C++ interface connection (Since R2021b)
isopenDetermine if MongoDB C++ interface connection is open (Since R2021b)
closeClose MongoDB C++ interface connection (Since R2021b)
countCount total number of documents in MongoDB collection (Since R2021b)
findRetrieve documents in MongoDB collection (Since R2021b)
createCollectionCreate MongoDB collection (Since R2021b)
dropCollectionDrop MongoDB collection (Since R2021b)
insertInsert one or multiple documents into MongoDB collection (Since R2021b)
removeRemove one or multiple documents from MongoDB collection (Since R2021b)
updateUpdate one or multiple documents in MongoDB collection (Since R2021b)

Topics