Skip to content

Commit

Permalink
Update the mongosh command to connect the Viam org's MongoDB Atlas in…
Browse files Browse the repository at this point in the history
…stance (#2276)
  • Loading branch information
agreenb authored Nov 29, 2023
1 parent f5107e5 commit 37773b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/data/query.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,12 @@ For example, to connect to your Viam organization's MongoDB Atlas instance and q
1. Run the following command to connect to the Viam organization's MongoDB Atlas instance from `mongosh`:

```sh {class="command-line" data-prompt=">"}
mongosh "mongodb+srv://<YOUR-DB-HOSTNAME>" --apiVersion 1 --username db-user-<YOUR-ORG-ID>
mongosh "mongodb://<YOUR-DB-HOSTNAME>" --tls --authenticationDatabase admin --username db-user-<YOUR-ORG-ID>
```

Where:

- `<YOUR-DB-HOSTNAME>` is your organization's assigned MongoDB Atlas instance hostname (including database name), determined from the [`viam data database hostname` CLI command](/data/query/#configure-data-query).
- `<YOUR-DB-HOSTNAME>` is your organization's assigned MongoDB Atlas instance hostname, determined from the [`viam data database hostname` CLI command](/data/query/#configure-data-query).
- `<YOUR-ORG-ID>` is your organization ID, determined from the `viam organizations list` CLI command.
The full username you provide to the `--username` flag should therefore resemble `db-user-abcdef12-abcd-abcd-abcd-abcdef123456`.

Expand Down

0 comments on commit 37773b2

Please sign in to comment.