MongoDB
Connecting MongoDB
Follow these steps to sync an existing MongoDB collection
MongoDB is currently in beta. Might be rough around the edges!
Optional: Adding Bracket as a user
Perform this step if you would like to give Bracket access through a dedicated account. Skip this step if you prefer to use an existing MongoDB account during setup.
- Go to
Database Access
- Click
Add New User
- Add a user with username
bracket
and an auto-generated password (blue box below). In the permissions section, selectRead and write to any database
inBuilt-in roles
or define a custom role that allows read and write permission to the specific databases you want to connect with Bracket (red box below).
- If you assign a custom role for Bracket, at the minimum it must include read and/or write access for the specific collection that is being synced, depending on the direction of your sync.
- Copy the username and password, which we’ll use in the next step.
Getting connection string URI
- Go to the
Database Deployments
page in MongoDB by clickingDatabase
on the left sidebar (see below).
- Next to the name of the cluster you would like to connect with Bracket, click
Connect
.
- Then click
Connect your application
.
- Copy the connection string provided, then replace
<username>
and<password>
with the username and password created for Bracket in the previous step (or with the username and password for an existing MongoDB user). It should have the same format as this:
MongoDB Connection URI
Enter the full URI in the webapp at app.usebracket.com.
Whitelisting 0.0.0.0/0 IP address
Navigate to “Network Access” on the lefthand sidebar.
-
Click “Add IP Address”.
-
In the “Whitelist Entry” field, type in “0.0.0.0/0” The comment field is optional. Click “Confirm”.
Note that whitelisting 0.0.0.0/0 as an IP address makes the database accessible from anywhere, but does not change the fact that access still requires a username and password generated by your database administrator. Alternatively, Bracket can provide a static IP address under the Enterprise plan.