This documentation describes the integration of MindsDB with MongoDB, a document database with the scalability and flexibility that you want with the querying and indexing that you need.Documentation Index
Fetch the complete documentation index at: https://docs.mindsdb.com/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before proceeding, ensure the following prerequisites are met:- Install MindsDB locally via Docker or Docker Desktop.
Connection
Establish a connection to MongoDB from MindsDB by executing the following SQL command:host: The connection string of the MongoDB server that includes user (admin), password (admin_pass), host and port (demo.mongodb.net), and database (public).database: If the connection string does not include the/databasepath, provide it in this parameter.
username: The username associated with the database.password: The password to authenticate your access.host: The host of the MongoDB server.port: The port through which TCP/IP connection is to be made.database: The database name to be connected.
Usage
Retrieve data from a specified collection by providing the integration name and collection name:The above examples utilize
mongodb_datasource as the datasource name, which is defined in the CREATE DATABASE command.