Skip to content

Commit a6be306

Browse files
Merge pull request #281086 from TimShererWithAquent/071724OPBR
Address build warnings to unblock publishing process
2 parents 18079d7 + 3b9420c commit a6be306

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

articles/cosmos-db/nosql/quickstart-nodejs.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -152,31 +152,31 @@ The client library is available through the Node Package Manager, as the `@azure
152152
153153
This sample creates a new instance of the `CosmosClient` type and authenticates using a `DefaultAzureCredential` instance.
154154
155-
:::code language="javascript" source="~/cosmos-db-nosql-nodejs-quickstart/src/cosmos.js" id="create_client" highlight="1,3":::
155+
:::code language="javascript" source="~/cosmos-db-nosql-nodejs-quickstart/src/js/cosmos.js" id="create_client" highlight="1,3":::
156156
157157
### Get a database
158158
159159
Use `client.database` to retrieve the existing database named *`cosmicworks`*.
160160
161-
:::code language="javascript" source="~/cosmos-db-nosql-nodejs-quickstart/src/cosmos.js" id="get_database":::
161+
:::code language="javascript" source="~/cosmos-db-nosql-nodejs-quickstart/src/js/cosmos.js" id="get_database":::
162162
163163
### Get a container
164164
165165
Retrieve the existing *`products`* container using `database.container`.
166166
167-
:::code language="javascript" source="~/cosmos-db-nosql-nodejs-quickstart/src/cosmos.js" id="get_container":::
167+
:::code language="javascript" source="~/cosmos-db-nosql-nodejs-quickstart/src/js/cosmos.js" id="get_container":::
168168
169169
### Create an item
170170
171171
Build a new object with all of the members you want to serialize into JSON. In this example, the type has a unique identifier, and fields for category, name, quantity, price, and sale. Create an item in the container using `container.items.upsert`. This method "upserts" the item effectively replacing the item if it already exists.
172172
173-
:::code language="javascript" source="~/cosmos-db-nosql-nodejs-quickstart/src/cosmos.js" id="create_item" highlight="10":::
173+
:::code language="javascript" source="~/cosmos-db-nosql-nodejs-quickstart/src/js/cosmos.js" id="create_item" highlight="10":::
174174
175175
### Read an item
176176
177177
Perform a point read operation by using both the unique identifier (`id`) and partition key fields. Use `container.item` to get a pointer to an item and `item.read` to efficiently retrieve the specific item.
178178
179-
:::code language="javascript" source="~/cosmos-db-nosql-nodejs-quickstart/src/cosmos.js" id="read_item" highlight="4":::
179+
:::code language="javascript" source="~/cosmos-db-nosql-nodejs-quickstart/src/js/cosmos.js" id="read_item" highlight="4":::
180180
181181
### Query items
182182
@@ -188,7 +188,7 @@ SELECT * FROM products p WHERE p.category = @category
188188

189189
Fetch all of the results of the query using `query.fetchAll`. Loop through the results of the query.
190190

191-
:::code language="javascript" source="~/cosmos-db-nosql-nodejs-quickstart/src/cosmos.js" id="query_items" highlight="2,11":::
191+
:::code language="javascript" source="~/cosmos-db-nosql-nodejs-quickstart/src/js/cosmos.js" id="query_items" highlight="2,11":::
192192

193193
## Related content
194194

0 commit comments

Comments
 (0)