Skip to content

Commit e8c548e

Browse files
committed
Updating Gremlin endpoint connection string details
1 parent 372c427 commit e8c548e

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

articles/cosmos-db/create-graph-nodejs.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.service: cosmos-db
66
ms.subservice: cosmosdb-graph
77
ms.devlang: nodejs
88
ms.topic: quickstart
9-
ms.date: 01/08/2019
9+
ms.date: 06/05/2019
1010
ms.author: lbosq
1111

1212
---
@@ -135,14 +135,10 @@ The following snippets are all taken from the app.js file.
135135
136136
2. In config.js, fill in the `config.endpoint` key with the **Gremlin URI** value from the **Overview** page of the Azure portal.
137137
138-
`config.endpoint = "GRAPHENDPOINT";`
138+
`config.endpoint = "https://<your_Gremlin_account_name>.gremlin.cosmosdb.azure.com:443/";`
139139
140140
![View and copy an access key in the Azure portal, Keys blade](./media/create-graph-nodejs/gremlin-uri.png)
141141
142-
If the **Gremlin URI** value is blank, you can generate the value from the **Keys** page in the portal. Use the **URI** value, remove https://, and change documents to gremlin.cosmosdb. If your graph account was created before December 20th, 2017, change documents to graphs.
143-
144-
The Gremlin endpoint must be only the host name without the protocol/port number, like `mygraphdb.gremlin.cosmosdb.azure.com` (not `https://mygraphdb.gremlin.cosmosdb.azure.com` or `mygraphdb.gremlin.cosmosdb.azure.com:433`).
145-
146142
3. In config.js, fill in the config.primaryKey value with the **Primary Key** value from the **Keys** page of the Azure portal.
147143
148144
`config.primaryKey = "PRIMARYKEY";`
@@ -157,7 +153,7 @@ Here's an example of what your completed config.js file should look like:
157153
var config = {}
158154
159155
// Note that this must not have HTTPS or the port number
160-
config.endpoint = "testgraphacct.gremlin.cosmosdb.azure.com";
156+
config.endpoint = "https://testgraphacct.gremlin.cosmosdb.azure.com:443/";
161157
config.primaryKey = "Pams6e7LEUS7LJ2Qk0fjZf3eGo65JdMWHmyn65i52w8ozPX2oxY3iP0yu05t9v1WymAHNcMwPIqNAEv3XDFsEg==";
162158
config.database = "graphdb"
163159
config.collection = "Persons"

0 commit comments

Comments
 (0)