Skip to content

Commit

Permalink
Update static/include/how-to/query-data.md
Browse files Browse the repository at this point in the history
  • Loading branch information
npentrel authored Jun 21, 2024
1 parent 40fde99 commit 5d330b3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions static/include/how-to/query-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ viam data database hostname --org-id=<YOUR-ORGANIZATION-ID>

This command returns both the _connection URI_ to your organization's MongoDB Atlas Data Federation instance, as well as its _hostname_ and _database name_:

```sh {class="command-line" data-prompt="$" data-output="2-10"}
(.venv) ➜ viam-docs git:(user-journeys) ✗ viam data database hostname --org-id=abcd1e2f-a1b2-3c45-de6f-ab123456c123
MongoDB Atlas Data Federation instance hostname: data-federation-abcd1e2f-a1b2-3c45-de6f-ab123456c123-0z9yx.a.query.mongodb.net
MongoDB Atlas Data Federation instance connection URI: mongodb://db-user-abcd1e2f-a1b2-3c45-de6f-ab123456c123:YOUR-PASSWORD-HERE@data-federation-abcd1e2f-a1b2-3c45-de6f-ab123456c123-0z9yx.a.query.mongodb.net/?ssl=true&authSource=admin

- Most MQL-compatible database clients require the _connection URI_, along with your user credentials, to connect to this server.
- Some MQL-compatible database client instead require a _hostname_ and _database name_, along with your user credentials, to connect to this server.

Expand Down

0 comments on commit 5d330b3

Please sign in to comment.