MongoDB
Squid can connect to a MongoDB database to serve as the data source for your Squid application.
MongoDB is a document-based database for developing applications designed to adapt and scale. With Squid, you can integrate with your MongoDB database and even join data with other database integrations.
To integrate your MongoDB database with Squid, complete the following steps:
- Open the Squid Console and select your application to use with MongoDB.
- Click the Integrations tab, and then click Available integrations to view all integrations.
- Select the MongoDB integration.
- Provide the following configuration information:
- Integration ID - Choose an ID that is brief and helps identify the integration.
- MongoDB connection string - This is the connection string that links Squid to the MongoDB database.
- MongoDB username
- MongoDB password - To keep it private, store your password in Squid Secrets.
- SSL configuration (if needed)
Once you've entered the connection information, click Test connection to verify that the connection is successful.
Securing your database
By default, security rules are required, and in a production environment, it's essential to never allow access to the integration without them. Learn more about securing your database data in the security rules documentation.
Tutorial
To see a complete example integrating a MongoDB database with Squid, check out our MongoDB tutorial.
Datatype mapping
All Squid datatypes are natively supported by the MongoDB database.
To learn how to work with MongoDB data in Squid, check out our MongoDB tutorial or view the Client SDK documentation.