Skip to content

Commit c0a96bb

Browse files
authored
Merge pull request #96323 from SnehaGunda/PrivateLink1
Create database - Nodejs doc SEO improvements
2 parents 0c79673 + d2b4db7 commit c0a96bb

File tree

3 files changed

+22
-22
lines changed

3 files changed

+22
-22
lines changed

articles/cosmos-db/create-cosmosdb-resources-portal.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
title: Create an Azure Cosmos account, container, and items with the Azure portal.
3-
description: Create an Azure Cosmos account, container, and items with the Azure portal.
2+
title: Create an Azure Cosmos database from the Azure portal.
3+
description: Create an Azure Cosmos database, container, and items by using the Azure portal.
44
author: SnehaGunda
55
ms.author: sngun
66
ms.service: cosmos-db
@@ -9,7 +9,7 @@ ms.devlang: dotnet
99
ms.topic: quickstart
1010
ms.date: 09/01/2019
1111
---
12-
# Quickstart: Create an Azure Cosmos account, container, and items with the Azure portal
12+
# Quickstart: Create an Azure Cosmos account, database, container, and items from the Azure portal
1313

1414
> [!div class="op_single_selector"]
1515
> * [Azure portal](create-cosmosdb-resources-portal.md)

articles/cosmos-db/create-sql-api-nodejs.md

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
---
2-
title: 'Azure Cosmos DB: Build a Node.js app using JavaScript SDK to manage Azure Cosmos DB SQL API data'
3-
description: Presents a Node.js code sample you can use to connect to and query the Azure Cosmos DB SQL API
2+
title: 'Quickstart: Use Node.js to query from Azure Cosmos DB SQL API account'
3+
description: How to use Node.js to create an app that connects to Azure Cosmos DB SQL API account and queries data.
44
author: deborahc
55
ms.service: cosmos-db
66
ms.subservice: cosmosdb-sql
77
ms.devlang: nodejs
88
ms.topic: quickstart
9-
ms.date: 05/21/2019
9+
ms.date: 11/19/2019
1010
ms.author: dech
1111

1212
---
13-
# Quickstart: Build a Node.js app using Azure Cosmos DB SQL API account
13+
# Quickstart: Use Node.js to connect and query data from Azure Cosmos DB SQL API account
1414

1515
> [!div class="op_single_selector"]
1616
> * [.NET V3](create-sql-api-dotnet.md)
@@ -20,9 +20,7 @@ ms.author: dech
2020
> * [Python](create-sql-api-python.md)
2121
> * [Xamarin](create-sql-api-xamarin-dotnet.md)
2222
23-
Azure Cosmos DB is Microsoft’s globally distributed multi-model database service. You can quickly create and query document, key/value, and graph databases, all of which benefit from the global distribution and horizontal scale capabilities at the core of Azure Cosmos DB.
24-
25-
This quickstart demonstrates how to create an Azure Cosmos DB [SQL API](sql-api-introduction.md) account, document database, and container using the Azure portal. You then build and run a console app built on the [SQL JavaScript SDK](sql-api-sdk-node.md). This quickstart uses version 2.0 of the [JavaScript SDK](https://www.npmjs.com/package/@azure/cosmos).
23+
This quickstart demonstrates how to use a Node.js app to connect to the [SQL API](sql-api-introduction.md) account in Azure Cosmos DB. You can then use Azure Cosmos DB SQL queries to query and manage data. The Node.js app you build in this article uses the [SQL JavaScript SDK](sql-api-sdk-node.md). This quickstart uses version 2.0 of the [JavaScript SDK](https://www.npmjs.com/package/@azure/cosmos).
2624

2725
## Prerequisites
2826

@@ -33,7 +31,7 @@ This quickstart demonstrates how to create an Azure Cosmos DB [SQL API](sql-api-
3331
* [Node.js](https://nodejs.org/en/) version v6.0.0 or higher
3432
* [Git](https://git-scm.com/)
3533

36-
## Create a database account
34+
## Create a database
3735

3836
[!INCLUDE [cosmos-db-create-dbaccount](../../includes/cosmos-db-create-dbaccount.md)]
3937

@@ -51,7 +49,7 @@ This quickstart demonstrates how to create an Azure Cosmos DB [SQL API](sql-api-
5149

5250
## Clone the sample application
5351

54-
Now let's clone a SQL API app from GitHub, set the connection string, and run it.
52+
Now let's clone a Node.js app from GitHub, set the connection string, and run it.
5553

5654
1. Open a command prompt, create a new folder named git-samples, then close the command prompt.
5755

@@ -73,25 +71,25 @@ Now let's clone a SQL API app from GitHub, set the connection string, and run it
7371

7472
## Review the code
7573

76-
This step is optional. If you're interested in learning how the database resources are created in the code, you can review the following snippets. Otherwise, you can skip ahead to [Update your connection string](#update-your-connection-string).
74+
This step is optional. If you're interested in learning how the Azure Cosmos database resources are created in the code, you can review the following snippets. Otherwise, you can skip ahead to [Update your connection string](#update-your-connection-string).
7775
7876
Note, if you are familiar with the previous version of the JavaScript SDK, you may be used to seeing the terms 'collection' and 'document.' Because Azure Cosmos DB supports [multiple API models](https://docs.microsoft.com/azure/cosmos-db/introduction), version 2.0+ of the JavaScript SDK uses the generic terms 'container', which may be a collection, graph, or table and 'item' to describe the content of the container.
7977
8078
The following snippets are all taken from the **app.js** file.
8179
82-
* The `CosmosClient` is initialized.
80+
* The `CosmosClient` object is initialized.
8381
8482
```javascript
8583
const client = new CosmosClient({ endpoint, key });
8684
```
8785
88-
* A new database is created.
86+
* Create a new Azure Cosmos database.
8987
9088
```javascript
9189
const { database } = await client.databases.createIfNotExists({ id: databaseId });
9290
```
9391
94-
* A new container (collection) is created.
92+
* A new container (collection) is created within the database.
9593
9694
```javascript
9795
const { container } = await client.database(databaseId).containers.createIfNotExists({ id: containerId });
@@ -103,7 +101,7 @@ The following snippets are all taken from the **app.js** file.
103101
const { item } = await client.database(databaseId).container(containerId).items.create(itemBody);
104102
```
105103
106-
* A SQL query over JSON is performed.
104+
* A SQL query over JSON is performed on the family database. The query returns all the children of the "Anderson" family.
107105
108106
```javascript
109107
const querySpec = {
@@ -129,7 +127,7 @@ The following snippets are all taken from the **app.js** file.
129127
130128
## Update your connection string
131129
132-
Now go back to the Azure portal to get your connection string information and copy it into the app.
130+
Now go back to the Azure portal to get the connection string details of your Azure Cosmos account. Copy the connection string into the app so that it can connect to your database.
133131
134132
1. In the [Azure portal](https://portal.azure.com/), in your Azure Cosmos account, in the left navigation click **Keys**, and then click **Read-write Keys**. You'll use the copy buttons on the right side of the screen to copy the URI and Primary Key into the `config.js` file in the next step.
135133

@@ -146,11 +144,12 @@ Now go back to the Azure portal to get your connection string information and co
146144
`config.key = "FILLME"`
147145
148146
## Run the app
147+
149148
1. Run `npm install` in a terminal to install required npm modules
150149
151150
2. Run `node app.js` in a terminal to start your node application.
152151
153-
You can now go back to Data Explorer and see query, modify, and work with this new data.
152+
You can now go back to Data Explorer, modify, and work with this new data.
154153
155154
## Review SLAs in the Azure portal
156155
@@ -162,7 +161,7 @@ You can now go back to Data Explorer and see query, modify, and work with this n
162161
163162
## Next steps
164163
165-
In this quickstart, you've learned how to create an Azure Cosmos account, create a container using the Data Explorer, and run an app. You can now import additional data to your Cosmos DB account.
164+
In this quickstart, you've learned how to create an Azure Cosmos account, create a container using the data explorer, and run an app. You can now import additional data to your Azure Cosmos database.
166165

167166
> [!div class="nextstepaction"]
168167
> [Import data into Azure Cosmos DB](import-data.md)

articles/cosmos-db/sql-api-nodejs-samples.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Node.js examples for Azure Cosmos DB
2+
title: Node.js examples to manage data in Azure Cosmos database
33
description: Find Node.js examples on GitHub for common tasks in Azure Cosmos DB, including CRUD operations.
44
author: deborahc
55
ms.service: cosmos-db
@@ -9,7 +9,8 @@ ms.date: 08/23/2019
99
ms.author: dech
1010

1111
---
12-
# Azure Cosmos DB Node.js examples
12+
# Node.js examples to manage data in Azure Cosmos DB
13+
1314
> [!div class="op_single_selector"]
1415
> * [.NET V2 SDK Examples](sql-api-dotnet-samples.md)
1516
> * [.NET V3 SDK Examples](sql-api-dotnet-v3sdk-samples.md)

0 commit comments

Comments
 (0)