Skip to content

Commit 59f0f5c

Browse files
Including simple comments
1 parent 1f84f7d commit 59f0f5c

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

java/100_aggregation_pipeline_match.ipynb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@
115115
"AggregateIterable<Document> result = books.aggregate(aggregationPipeline);\n",
116116
"\n",
117117
"// Iterate through the results\n",
118-
"\n",
119118
"for (Document doc : result) {\n",
120119
" System.out.println(\"book: \" + doc.toJson());\n",
121120
"}"
@@ -156,6 +155,7 @@
156155
"\n",
157156
"AggregateIterable<Document> result = books.aggregate(aggregationPipeline);\n",
158157
"\n",
158+
"// Iterate through the results\n",
159159
"for (Document doc : result) {\n",
160160
" System.out.println(\"book: \" + doc.toJson());\n",
161161
"}\n"
@@ -190,6 +190,7 @@
190190
"\n",
191191
"AggregateIterable<Document> result = books.aggregate(aggregationPipeline);\n",
192192
"\n",
193+
"// Iterate through the results\n",
193194
"for (Document doc : result) {\n",
194195
" System.out.println(\"book: \" + doc.toJson());\n",
195196
"}"
@@ -240,6 +241,7 @@
240241
"\n",
241242
"AggregateIterable<Document> result = books.aggregate(aggregationPipeline);\n",
242243
"\n",
244+
"// Iterate through the results\n",
243245
"for (Document doc : result) {\n",
244246
" System.out.println(\"book: \" + doc.toJson());\n",
245247
"}"

java/101_aggregation_pipeline_arrays.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,12 @@
9999
"id": "handled-symbol",
100100
"metadata": {},
101101
"source": [
102-
"### $match: $all\n",
102+
"### $match with the `$all` operator\n",
103103
"\n",
104104
"[arrays-reference](\n",
105105
"https://mongodb-developer.github.io/aggregation-pipeline-lab/docs/using-arrays/simple-match-array)\n",
106106
"\n",
107-
"If you want to find books whose `genres` array contains both \"Family Life\" and \"Fiction\", in any order, use:"
107+
"If you want to find books whose `genres` array contains both `\"Family Life\"` and `\"Fiction\"`, in any order, use:"
108108
]
109109
},
110110
{

0 commit comments

Comments
 (0)