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/nosql/how-to-javascript-create-container.md
+9-3Lines changed: 9 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,15 +36,21 @@ Once created, the URI for a container is in this format:
36
36
Get a [Database](how-to-javascript-create-database.md) object, then create a [Container](/javascript/api/@azure/cosmos/container):
37
37
38
38
*[createIfNotExists](/javascript/api/@azure/cosmos/containers#@azure-cosmos-containers-createifnotexists) - Creates a container if it doesn't exist. If it does exist, return container.
39
-
*[create](/javascript/api/@azure/cosmos/containers#@azure-cosmos-containers-create) - Creates a container if it doesn't already exist. If it does exist, return error statusCode.
39
+
*[create](/javascript/api/@azure/cosmos/containers#@azure-cosmos-containers-create) - Creates a container. If it does exist, return error statusCode.
Copy file name to clipboardExpand all lines: articles/cosmos-db/nosql/how-to-javascript-create-database.md
+8-3Lines changed: 8 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,15 +36,20 @@ Once created, the URI for a database is in this format:
36
36
Once you create the [CosmosClient](/javascript/api/@azure/cosmos/cosmosclient), use the client to create a [Database](/javascript/api/@azure/cosmos/database) from two different calls:
37
37
38
38
*[createIfNotExists](/javascript/api/@azure/cosmos/databases#@azure-cosmos-databases-createifnotexists) - Creates a database if it doesn't exist. If it does exist, return database.
39
-
*[create](/javascript/api/@azure/cosmos/databases#@azure-cosmos-databases-create) - Creates a database if it doesn't already exist. If it does exist, return error statusCode.
39
+
*[create](/javascript/api/@azure/cosmos/databases#@azure-cosmos-databases-create) - Creates a database. If it does exist, return error statusCode.
Copy file name to clipboardExpand all lines: articles/cosmos-db/nosql/how-to-javascript-create-item.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,7 +61,7 @@ When referencing the item using a URI, use the system-generated *resource identi
61
61
Create an item with the container's [items](/javascript/api/@azure/cosmos/container#@azure-cosmos-container-items) object using the [create](/javascript/api/@azure/cosmos/items) method.
Replace the data with the [Item](/javascript/api/@azure/cosmos/item) object with the [replace](/javascript/api/@azure/cosmos/item#@azure-cosmos-item-replace) method.
Read the most current data with the [Item](/javascript/api/@azure/cosmos/item) object with the[read](/javascript/api/@azure/cosmos/item#@azure-cosmos-item-read) method.
89
+
Read the most current data with the [Item](/javascript/api/@azure/cosmos/item) object's[read](/javascript/api/@azure/cosmos/item#@azure-cosmos-item-read) method.
Delete the item with the [Item](/javascript/api/@azure/cosmos/item) object with the[delete](/javascript/api/@azure/cosmos/item#@azure-cosmos-item-read) method.
97
+
Delete the item with the [Item](/javascript/api/@azure/cosmos/item) object's'[delete](/javascript/api/@azure/cosmos/item#@azure-cosmos-item-read) method.
0 commit comments