File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
includes/fundamentals/code-snippets/builders Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -45,8 +45,8 @@ Use these methods to construct pipeline stages and specify them in your
4545aggregation as a list:
4646
4747.. literalinclude:: /includes/fundamentals/code-snippets/builders/AggBuilders.java
48- :start-after: begin sampleAggregation
49- :end-before: end sampleAggregation
48+ :start-after: begin aggregationSample
49+ :end-before: end aggregationSample
5050 :language: java
5151 :dedent:
5252
Original file line number Diff line number Diff line change @@ -82,11 +82,11 @@ public static void main(String[] args) {
8282 }
8383
8484 private void aggregationExample () {
85- // begin sampleAggregation
85+ // begin aggregationSample
8686 Bson matchStage = match (eq ("some_field" , "some_criteria" ));
8787 Bson sortByCountStage = sortByCount ("some_field" );
8888 collection .aggregate (asList (matchStage , sortByCountStage )).forEach (doc -> System .out .println (doc ));
89- // end sampleAggregation
89+ // end aggregationSample
9090 }
9191
9292 private void setWindowFieldsStage () {
You can’t perform that action at this time.
0 commit comments