Skip to content

Commit aa92092

Browse files
authored
Merge pull request #9600 from nschonni/patch-6
fix: azure-documentdb-node docs moved to MSDocs
2 parents 23591e4 + 6dacb62 commit aa92092

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
@@ -205,7 +205,7 @@ Copy and paste the code below to set the HTTP status for Not Found, the database
205205
var databaseId = config.database.id;
206206
var collectionId = config.collection.id;
207207

208-
A [database](sql-api-resources.md#databases) can be created by using the [createDatabase](https://azure.github.io/azure-documentdb-node/DocumentClient.html) function of the **DocumentClient** class. A database is the logical container of document storage partitioned across collections.
208+
A [database](sql-api-resources.md#databases) can be created by using the [createDatabase](/javascript/api/documentdb/documentclient) function of the **DocumentClient** class. A database is the logical container of document storage partitioned across collections.
209209

210210
Copy and paste the **getDatabase** function for creating your new database in the app.js file with the ```databaseId``` specified from the ```config``` object. The function will check if the database with the same ```FamilyRegistry``` id does not already exist. If it does exist, we'll return that database instead of creating a new one.
211211

@@ -262,7 +262,7 @@ Congratulations! You have successfully created an Azure Cosmos DB database.
262262
> [!WARNING]
263263
> **createCollection** will create a new collection, which has pricing implications. For more details, please visit our [pricing page](https://azure.microsoft.com/pricing/details/cosmos-db/).
264264
265-
A [collection](sql-api-resources.md#collections) can be created by using the [createCollection](https://azure.github.io/azure-documentdb-node/DocumentClient.html) function of the **DocumentClient** class. A collection is a container of JSON documents and associated JavaScript application logic.
265+
A [collection](sql-api-resources.md#collections) can be created by using the [createCollection](/javascript/api/documentdb/documentclient) function of the **DocumentClient** class. A collection is a container of JSON documents and associated JavaScript application logic.
266266

267267
Copy and paste the **getCollection** function underneath the **getDatabase** function in the app.js file to create your new collection with the ```collectionId``` specified from the ```config``` object. Again, we'll check to make sure a collection with the same ```FamilyCollection``` id does not already exist. If it does exist, we'll return that collection instead of creating a new one.
268268

@@ -313,7 +313,7 @@ Congratulations! You have successfully created an Azure Cosmos DB collection.
313313

314314
## <a id="CreateDoc"></a>Step 7: Create a document
315315

316-
A [document](sql-api-resources.md#documents) can be created by using the [createDocument](https://azure.github.io/azure-documentdb-node/DocumentClient.html) function of the **DocumentClient** class. Documents are user defined (arbitrary) JSON content. You can now insert a document into Azure Cosmos DB.
316+
A [document](sql-api-resources.md#documents) can be created by using the [createDocument](/javascript/api/documentdb/documentclient) function of the **DocumentClient** class. Documents are user defined (arbitrary) JSON content. You can now insert a document into Azure Cosmos DB.
317317

318318
Copy and paste the **getFamilyDocument** function underneath the **getCollection** function for creating the documents containing the JSON data saved in the ```config``` object. Again, we'll check to make sure a document with the same id does not already exist.
319319

0 commit comments

Comments
 (0)