Mongo DB
Use Census to sync data to a MongoDB table from any source we support.
Getting Started
MongoDB is a popular NoSQL database known for its flexibility and scalability, using a document-oriented data model that stores data in JSON-like structures called BSON. With Census, you can sync data into MongoDB from any source we support.
To connect to MongoDB, Census needs to know the Connection String for your instance and the database you want to connect to.
For a Local MongoDB Installation
Identify Your MongoDB Host and Port: By default, MongoDB runs on port
27017
.Construct the Connection String: The basic format of the connection string for a MongoDB server is:
For MongoDB Atlas (Cloud Hosted)
Log In to Your MongoDB Atlas Dashboard: Access your cluster in the MongoDB Atlas dashboard.
Navigate to the Connect Section: Click on the "Connect" button associated with the cluster from which you want to retrieve the connection string.
Choose Your Connection Method: Select "Connect your application". This option provides you with the connection string.
Copy the Connection String: You will see a connection string provided by Atlas. Replace
<password>
with your database user's password, and adjust other parameters as necessary.
Now you're ready to set up your first sync to MongoDB!
Table schemas
Because MongoDB tables have flexible schemas, Census treats every field you map from your source as a "custom field". Other than the key fields discussed above, Census won't know about your table's schema. Instead, you'll use Census's Field Mapping feature to map fields from your source to your MongoDB table by explicitly specifying the destination table field name.
Need help connecting to MongoDB?
You can send our support team an email at support@getcensus.com or start a conversation from the in-app chat.
Last updated