Skip to content

Commit dbb66f4

Browse files
committed
Fixing Node.js tutorial
1 parent 2563062 commit dbb66f4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/cosmos-db/sql-api-nodejs-get-started.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ In the *app.js* file, copy and paste the following code to use the previously sa
119119

120120
> [!Note]
121121
> If connecting to the **Cosmos DB Emulator**, disable TLS verification for your node process:
122-
> ```
122+
> ```javascript
123123
> process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
124124
> const client = new CosmosClient({ endpoint, key });
125125
> ```
@@ -128,7 +128,7 @@ Now that you have the code to initialize the Azure Cosmos DB client, let's take
128128
129129
## <a id="QueryItem"></a>Query items
130130
131-
Azure Cosmos DB supports rich queries against JSON documents stored in each container. The following sample code shows a query that you can run against the items in your container.You can query the items by using the query function of the `Items` class. Add the following code to the *app.js* file to query the items from your Azure Cosmos account:
131+
Azure Cosmos DB supports rich queries against JSON items stored in each container. The following sample code shows a query that you can run against the items in your container.You can query the items by using the query function of the `Items` class. Add the following code to the *app.js* file to query the items from your Azure Cosmos account:
132132
133133
:::code language="javascript" source="~/cosmosdb-nodejs-get-started/app.js" id="QueryItems":::
134134
@@ -148,7 +148,7 @@ An item can be created by using the create function of the `Items` class. When y
148148
149149
Azure Cosmos DB supports replacing the contents of items. Copy and paste the following code to *app.js* file. This code gets an item from the container and updates the *isComplete* field to true.
150150
151-
:::code language="javascript" source="~/cosmosdb-nodejs-get-started/app.js" id="CreateItem":::
151+
:::code language="javascript" source="~/cosmosdb-nodejs-get-started/app.js" id="UpdateItem":::
152152
153153
## <a id="DeleteItem"></a>Delete an item
154154

0 commit comments

Comments
 (0)