Skip to content

Commit 9a5f42f

Browse files
committed
fix: updated url handling documentation to use localhost in examples
1 parent 5af155b commit 9a5f42f

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

docs/manual/how-to-construct-url.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -84,27 +84,27 @@ vscode://ms-azuretools.vscode-documentdb?connectionString=mongodb%253A%252F%252F
8484
### Example 2: Connection with Database Navigation
8585

8686
```
87-
vscode://ms-azuretools.vscode-documentdb?connectionString=mongodb%253A%252F%252Fmyuser%253Amypass%2540cluster.example.com%253A27017&database=analytics
87+
vscode://ms-azuretools.vscode-documentdb?connectionString=mongodb%253A%252F%252Fmyuser%253Amypass%2540localhost%253A27017&database=analytics
8888
```
8989

90-
| Parameter | Decoded Value |
91-
| ------------------ | --------------------------------------------------- |
92-
| `connectionString` | `mongodb://myuser:mypass@cluster.example.com:27017` |
93-
| `database` | `analytics` |
90+
| Parameter | Decoded Value |
91+
| ------------------ | ----------------------------------------- |
92+
| `connectionString` | `mongodb://myuser:mypass@localhost:27017` |
93+
| `database` | `analytics` |
9494

9595
This URL will connect to the database and automatically navigate to the `analytics` database.
9696

9797
### Example 3: Direct Collection Access
9898

9999
```
100-
vscode://ms-azuretools.vscode-documentdb?connectionString=mongodb%252Bsrv%253A%252F%252Fadmin%253Asecret%2540cluster.mongodb.net%252Fproduction&database=ecommerce&collection=orders
100+
vscode://ms-azuretools.vscode-documentdb?connectionString=mongodb%253A%252F%252Fadmin%253Asecret%2540localhost%253A27017%252Fecommerce&database=ecommerce&collection=orders
101101
```
102102

103-
| Parameter | Decoded Value |
104-
| ------------------ | ----------------------------------------------------------- |
105-
| `connectionString` | `mongodb+srv://admin:secret@cluster.mongodb.net/production` |
106-
| `database` | `ecommerce` |
107-
| `collection` | `orders` |
103+
| Parameter | Decoded Value |
104+
| ------------------ | -------------------------------------------------- |
105+
| `connectionString` | `mongodb://admin:secret@localhost:27017/ecommerce` |
106+
| `database` | `ecommerce` |
107+
| `collection` | `orders` |
108108

109109
This URL will connect to the database, navigate to the `ecommerce` database, and open the Collection View for the `orders` collection.
110110

0 commit comments

Comments
 (0)