Skip to content

Commit 554d6dc

Browse files
committed
acrolinx and line fix for highlight
1 parent 003d65d commit 554d6dc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

articles/cosmos-db/mongodb/how-to-javascript-manage-queries.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const pipeline = [
6161

6262
### Pipeline stage syntax
6363

64-
A _stage_ defines the operation and the data it is applied to, such as:
64+
A _stage_ defines the operation and the data it's applied to, such as:
6565

6666
* $match - find documents
6767
* $addFields - add field to cursor, usually from previous stage
@@ -101,7 +101,7 @@ await aggCursor.forEach(product => {
101101
});
102102
```
103103

104-
## Use a aggregation pipeline in JavaScript
104+
## Use an aggregation pipeline in JavaScript
105105

106106
Use a pipeline to keep data processing on the server before returning to the client.
107107

@@ -151,14 +151,14 @@ The aggregations below use the [sample products collection](https://github.com/A
151151

152152
Use the following [sample code](https://github.com/Azure-Samples/cosmos-db-mongodb-api-javascript-samples/blob/main/280-aggregation/average-price-in-each-product-subcategory.js) to report on average price in each product subcategory.
153153

154-
:::code language="javascript" source="~/samples-cosmosdb-mongodb-javascript/280-aggregation/average-price-in-each-product-subcategory.js" id="aggregation_1" highlight="31, 48, 58, 61, 71":::
154+
:::code language="javascript" source="~/samples-cosmosdb-mongodb-javascript/280-aggregation/average-price-in-each-product-subcategory.js" id="aggregation_1" highlight="36, 53, 63, 66, 76":::
155155

156156

157157
### Example 2: Bike types with price range
158158

159159
Use the following [sample code](https://github.com/Azure-Samples/cosmos-db-mongodb-api-javascript-samples/blob/main/280-aggregation/bike-types-and-price-ranges.js) to report on the `Bikes` subcategory.
160160

161-
:::code language="javascript" source="~/samples-cosmosdb-mongodb-javascript/280-aggregation/bike-types-and-price-ranges.js" id="aggregation_1" highlight="28, 35, 43, 50, 73, 85, 90, 103":::
161+
:::code language="javascript" source="~/samples-cosmosdb-mongodb-javascript/280-aggregation/bike-types-and-price-ranges.js" id="aggregation_1" highlight="33, 40, 48, 55, 78, 90, 95, 108":::
162162

163163

164164

0 commit comments

Comments
 (0)