Connect MongoDB
Collections as tables, including Atlas. How to connect MongoDB to SyncStudio, what to enter, and what you can import into Google Sheets™.
- Database
- Credentials
- Choose collections
- Connection links
Before you start
- Open a spreadsheet in Google Sheets and start SyncStudio from Extensions → SyncStudio → Open SyncStudio. The first-import guide covers installing it.
- Use credentials made for reading only: a read-only database user, or an API key with read scopes. SyncStudio never needs to change anything in MongoDB to import from it.
- Only find and list commands are sent, over TLS. Nested fields become columns such as address.city. Use a user with the read role.
Connect it
- Add the source In the sidebar, press Add a source and choose MongoDB. You can type its name in the search box.
- Fill in the form The form asks for:
Field What to enter Connection string · kept secret In Atlas: Connect → Drivers. Put the password of a read-only database user in it. For example mongodb+srv://reader:password@cluster0.abcde.mongodb.net.Database For example shop.Client (optional) If you work for several clients: a label to filter imports by. - Test and save Give the connection a name your team will recognise. SyncStudio tests it before saving it; if the test fails, the message says what MongoDB answered.
- Or send a link If someone else holds the credentials, press Send this link to whoever has the details. The link works once, for 7 days, and shows them only this form.
Credentials are encrypted before they are stored, and no part of SyncStudio shows them again. To change them, edit the connection and enter them anew. See Connecting a source.
Next steps
- Build your first import from this connection.
- Choose how often it refreshes, and get told if a refresh fails.
- See the MongoDB page for what SyncStudio does with MongoDB.