You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/cosmos-db/sql-api-nodejs-get-started.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -205,7 +205,7 @@ Copy and paste the code below to set the HTTP status for Not Found, the database
205
205
var databaseId = config.database.id;
206
206
var collectionId = config.collection.id;
207
207
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.
209
209
210
210
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.
211
211
@@ -262,7 +262,7 @@ Congratulations! You have successfully created an Azure Cosmos DB database.
262
262
> [!WARNING]
263
263
> **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/).
264
264
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.
266
266
267
267
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.
268
268
@@ -313,7 +313,7 @@ Congratulations! You have successfully created an Azure Cosmos DB collection.
313
313
314
314
## <aid="CreateDoc"></a>Step 7: Create a document
315
315
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.
317
317
318
318
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.
0 commit comments