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.


connectionMongoDB C++ interface connection


expand all

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