File tree Expand file tree Collapse file tree 27 files changed +34
-34
lines changed
source/reference/operator/aggregation Expand file tree Collapse file tree 27 files changed +34
-34
lines changed Original file line number Diff line number Diff line change @@ -172,9 +172,9 @@ examples:
172
172
curl -SfL https://raw.githubusercontent.com/mongodb/mongo-c-driver/master/src/libmongoc/tests/test-mongoc-sample-commands.c -o ${DRIVERS_PATH}/test-mongoc-sample-commands.c
173
173
174
174
# c++
175
- curl -SfL https://raw.githubusercontent.com/mongodb/mongo-cxx-driver/master/src /mongocxx/test/transactions .cpp -o ${DRIVERS_PATH}/cpp-transactions.cpp
175
+ curl -SfL https://raw.githubusercontent.com/mongodb/mongo-cxx-driver/master/examples /mongocxx/mongodb.com/transactions_examples .cpp -o ${DRIVERS_PATH}/cpp-transactions.cpp
176
176
curl -SfL https://raw.githubusercontent.com/mongodb/mongo-cxx-driver/master/examples/mongocxx/with_transaction.cpp -o ${DRIVERS_PATH}/cpp-with-transaction.cpp
177
- curl -SfL https://raw.githubusercontent.com/mongodb/mongo-cxx-driver/master/src /mongocxx/test/versioned_api .cpp -o ${DRIVERS_PATH}/cpp-versioned_api.cpp
177
+ curl -SfL https://raw.githubusercontent.com/mongodb/mongo-cxx-driver/master/examples /mongocxx/mongodb.com/versioned_api_examples .cpp -o ${DRIVERS_PATH}/cpp-versioned_api.cpp
178
178
curl -SfL https://raw.githubusercontent.com/mongodb/mongo-cxx-driver/master/examples/mongocxx/mongodb.com/documentation_examples.cpp -o ${DRIVERS_PATH}/cpp-documentation-examples.cpp
179
179
180
180
# go
Original file line number Diff line number Diff line change @@ -550,7 +550,7 @@ Examples
550
550
551
551
.. replacement:: method-name-and-link
552
552
553
- `Bucket() <{+csharp-new- api-docs+}/MongoDB.Driver/MongoDB.Driver.PipelineStageDefinitionBuilder.Bucket.html>`__
553
+ `Bucket() <{+csharp-api-docs+}/MongoDB.Driver/MongoDB.Driver.PipelineStageDefinitionBuilder.Bucket.html>`__
554
554
555
555
.. replacement:: stage-specific-info
556
556
@@ -568,7 +568,7 @@ Examples
568
568
:end-before: // end bucket
569
569
570
570
To customize the ``$bucket`` operation, pass an
571
- `AggregateBucketOptions <{+csharp-new- api-docs+}/MongoDB.Driver/MongoDB.Driver.AggregateBucketOptions-1.html>`__
571
+ `AggregateBucketOptions <{+csharp-api-docs+}/MongoDB.Driver/MongoDB.Driver.AggregateBucketOptions-1.html>`__
572
572
object to the ``Bucket()`` method.
573
573
The following example performs the same ``$bucket`` operation as the previous example,
574
574
but groups all documents with a ``Runtime`` value greater than ``999`` into the
Original file line number Diff line number Diff line change @@ -601,7 +601,7 @@ Example
601
601
602
602
.. replacement:: method-name-and-link
603
603
604
- `BucketAuto() <{+csharp-new- api-docs+}/MongoDB.Driver/MongoDB.Driver.PipelineStageDefinitionBuilder.BucketAuto.html>`__
604
+ `BucketAuto() <{+csharp-api-docs+}/MongoDB.Driver/MongoDB.Driver.PipelineStageDefinitionBuilder.BucketAuto.html>`__
605
605
606
606
.. replacement:: stage-specific-info
607
607
@@ -618,7 +618,7 @@ Example
618
618
:language: csharp
619
619
:dedent: 8
620
620
621
- You can use an `AggregateBucketAutoOptions <{+csharp-new- api-docs+}/MongoDB.Driver/MongoDB.Driver.AggregateBucketAutoOptions.html>`__
621
+ You can use an `AggregateBucketAutoOptions <{+csharp-api-docs+}/MongoDB.Driver/MongoDB.Driver.AggregateBucketAutoOptions.html>`__
622
622
object to specify a :wikipedia:`preferred number <Preferred_number>`
623
623
-based scheme to set boundary values.
624
624
The following example performs the same ``$bucketAuto`` operation as the previous
Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ Examples
162
162
163
163
.. replacement:: method-name-and-link
164
164
165
- `ChangeStream() <{+csharp-new- api-docs+}/MongoDB.Driver/MongoDB.Driver.PipelineStageDefinitionBuilder.ChangeStream.html>`__
165
+ `ChangeStream() <{+csharp-api-docs+}/MongoDB.Driver/MongoDB.Driver.PipelineStageDefinitionBuilder.ChangeStream.html>`__
166
166
167
167
.. replacement:: stage-specific-info
168
168
@@ -178,7 +178,7 @@ Examples
178
178
:language: csharp
179
179
:dedent: 8
180
180
181
- You can use a `ChangeStreamStageOptions <{+csharp-new- api-docs+}/MongoDB.Driver/MongoDB.Driver.ChangeStreamStageOptions.html>`__
181
+ You can use a `ChangeStreamStageOptions <{+csharp-api-docs+}/MongoDB.Driver/MongoDB.Driver.ChangeStreamStageOptions.html>`__
182
182
object to customize the behavior of the change stream.
183
183
The following example performs the same ``$changeStream`` operation as the previous
184
184
example, but specifies the following options:
Original file line number Diff line number Diff line change @@ -276,7 +276,7 @@ Example
276
276
277
277
.. replacement:: method-name-and-link
278
278
279
- `ChangeStreamSplitLargeEvent() <{+csharp-new- api-docs+}/MongoDB.Driver/MongoDB.Driver.PipelineStageDefinitionBuilder.ChangeStreamSplitLargeEvent.html>`__
279
+ `ChangeStreamSplitLargeEvent() <{+csharp-api-docs+}/MongoDB.Driver/MongoDB.Driver.PipelineStageDefinitionBuilder.ChangeStreamSplitLargeEvent.html>`__
280
280
281
281
.. replacement:: stage-specific-info
282
282
Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ Examples
149
149
150
150
.. replacement:: method-name-and-link
151
151
152
- `Count() <{+csharp-new- api-docs+}/MongoDB.Driver/MongoDB.Driver.PipelineStageDefinitionBuilder.Count.html>`__
152
+ `Count() <{+csharp-api-docs+}/MongoDB.Driver/MongoDB.Driver.PipelineStageDefinitionBuilder.Count.html>`__
153
153
154
154
.. replacement:: stage-specific-info
155
155
Original file line number Diff line number Diff line change @@ -606,7 +606,7 @@ Examples
606
606
607
607
.. replacement:: method-name-and-link
608
608
609
- `Densify() <{+csharp-new- api-docs+}/MongoDB.Driver/MongoDB.Driver.PipelineStageDefinitionBuilder.Densify.html>`__
609
+ `Densify() <{+csharp-api-docs+}/MongoDB.Driver/MongoDB.Driver.PipelineStageDefinitionBuilder.Densify.html>`__
610
610
611
611
.. replacement:: stage-specific-info
612
612
Original file line number Diff line number Diff line change @@ -176,7 +176,7 @@ Examples
176
176
177
177
.. replacement:: method-name-and-link
178
178
179
- `Documents() <{+csharp-new- api-docs+}/MongoDB.Driver/MongoDB.Driver.PipelineStageDefinitionBuilder.Documents.html>`__
179
+ `Documents() <{+csharp-api-docs+}/MongoDB.Driver/MongoDB.Driver.PipelineStageDefinitionBuilder.Documents.html>`__
180
180
181
181
.. replacement:: stage-specific-info
182
182
Original file line number Diff line number Diff line change @@ -296,7 +296,7 @@ Example
296
296
297
297
.. replacement:: method-name-and-link
298
298
299
- `Facet() <{+csharp-new- api-docs+}/MongoDB.Driver/MongoDB.Driver.PipelineStageDefinitionBuilder.Facet.html>`__
299
+ `Facet() <{+csharp-api-docs+}/MongoDB.Driver/MongoDB.Driver.PipelineStageDefinitionBuilder.Facet.html>`__
300
300
301
301
.. replacement:: stage-specific-info
302
302
Original file line number Diff line number Diff line change @@ -625,7 +625,7 @@ Examples
625
625
626
626
.. replacement:: method-name-and-link
627
627
628
- `GraphLookup() <{+csharp-new- api-docs+}/MongoDB.Driver/MongoDB.Driver.PipelineStageDefinitionBuilder.GraphLookup.html>`__
628
+ `GraphLookup() <{+csharp-api-docs+}/MongoDB.Driver/MongoDB.Driver.PipelineStageDefinitionBuilder.GraphLookup.html>`__
629
629
630
630
.. replacement:: stage-specific-info
631
631
@@ -642,7 +642,7 @@ Examples
642
642
:language: csharp
643
643
:dedent: 8
644
644
645
- You can use an `AggregateGraphLookupOptions <{+csharp-new- api-docs+}/MongoDB.Driver/MongoDB.Driver.AggregateGraphLookupOptions-3.html>`__
645
+ You can use an `AggregateGraphLookupOptions <{+csharp-api-docs+}/MongoDB.Driver/MongoDB.Driver.AggregateGraphLookupOptions-3.html>`__
646
646
object to specify the depth to recurse and name of the depth field. The following
647
647
code example performs the same ``$graphLookup`` operation as the previous example,
648
648
but specifies a maximum recursion depth of ``1``:
Original file line number Diff line number Diff line change @@ -588,7 +588,7 @@ Examples
588
588
589
589
.. replacement:: method-name-and-link
590
590
591
- `Group() <{+csharp-new- api-docs+}/MongoDB.Driver/MongoDB.Driver.PipelineStageDefinitionBuilder.Group.html>`__
591
+ `Group() <{+csharp-api-docs+}/MongoDB.Driver/MongoDB.Driver.PipelineStageDefinitionBuilder.Group.html>`__
592
592
593
593
.. replacement:: stage-specific-info
594
594
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ Example
115
115
116
116
.. replacement:: method-name-and-link
117
117
118
- `Limit() <{+csharp-new- api-docs+}/MongoDB.Driver/MongoDB.Driver.PipelineStageDefinitionBuilder.Limit.html>`__
118
+ `Limit() <{+csharp-api-docs+}/MongoDB.Driver/MongoDB.Driver.PipelineStageDefinitionBuilder.Limit.html>`__
119
119
120
120
.. replacement:: stage-specific-info
121
121
Original file line number Diff line number Diff line change @@ -1234,7 +1234,7 @@ Examples
1234
1234
1235
1235
.. replacement:: method-name-and-link
1236
1236
1237
- `Lookup() <{+csharp-new- api-docs+}/MongoDB.Driver/MongoDB.Driver.PipelineStageDefinitionBuilder.Lookup.html>`__
1237
+ `Lookup() <{+csharp-api-docs+}/MongoDB.Driver/MongoDB.Driver.PipelineStageDefinitionBuilder.Lookup.html>`__
1238
1238
1239
1239
.. replacement:: stage-specific-info
1240
1240
Original file line number Diff line number Diff line change @@ -194,7 +194,7 @@ Examples
194
194
195
195
.. replacement:: method-name-and-link
196
196
197
- `Match() <{+csharp-new- api-docs+}/MongoDB.Driver/MongoDB.Driver.PipelineStageDefinitionBuilder.Match.html>`__
197
+ `Match() <{+csharp-api-docs+}/MongoDB.Driver/MongoDB.Driver.PipelineStageDefinitionBuilder.Match.html>`__
198
198
199
199
.. replacement:: stage-specific-info
200
200
Original file line number Diff line number Diff line change @@ -1560,12 +1560,12 @@ Examples
1560
1560
1561
1561
.. replacement:: method-name-and-link
1562
1562
1563
- `Merge() <{+csharp-new- api-docs+}/MongoDB.Driver/MongoDB.Driver.PipelineStageDefinitionBuilder.Merge.html>`__
1563
+ `Merge() <{+csharp-api-docs+}/MongoDB.Driver/MongoDB.Driver.PipelineStageDefinitionBuilder.Merge.html>`__
1564
1564
1565
1565
.. replacement:: stage-specific-info
1566
1566
1567
1567
When you call the ``Merge()`` method, you must pass an instance of the
1568
- `MergeStageOptions <{+csharp-new- api-docs+}/MongoDB.Driver/MongoDB.Driver.MergeStageOptions-1.html>`__
1568
+ `MergeStageOptions <{+csharp-api-docs+}/MongoDB.Driver/MongoDB.Driver.MergeStageOptions-1.html>`__
1569
1569
class. This object lets you specify options for the ``$merge`` stage, such as
1570
1570
how to handle matching documents.
1571
1571
Original file line number Diff line number Diff line change @@ -475,7 +475,7 @@ Examples
475
475
476
476
.. replacement:: method-name-and-link
477
477
478
- `Out() <{+csharp-new- api-docs+}/MongoDB.Driver/MongoDB.Driver.PipelineStageDefinitionBuilder.Out.html>`__
478
+ `Out() <{+csharp-api-docs+}/MongoDB.Driver/MongoDB.Driver.PipelineStageDefinitionBuilder.Out.html>`__
479
479
480
480
.. replacement:: stage-specific-info
481
481
Original file line number Diff line number Diff line change @@ -655,7 +655,7 @@ Examples
655
655
656
656
.. replacement:: method-name-and-link
657
657
658
- `Project() <{+csharp-new- api-docs+}/MongoDB.Driver/MongoDB.Driver.PipelineStageDefinitionBuilder.Project.html>`__
658
+ `Project() <{+csharp-api-docs+}/MongoDB.Driver/MongoDB.Driver.PipelineStageDefinitionBuilder.Project.html>`__
659
659
660
660
.. replacement:: stage-specific-info
661
661
Original file line number Diff line number Diff line change @@ -307,7 +307,7 @@ Examples
307
307
308
308
.. replacement:: method-name-and-link
309
309
310
- `ReplaceRoot() <{+csharp-new- api-docs+}/MongoDB.Driver/MongoDB.Driver.PipelineStageDefinitionBuilder.ReplaceRoot.html>`__
310
+ `ReplaceRoot() <{+csharp-api-docs+}/MongoDB.Driver/MongoDB.Driver.PipelineStageDefinitionBuilder.ReplaceRoot.html>`__
311
311
312
312
.. replacement:: stage-specific-info
313
313
Original file line number Diff line number Diff line change @@ -391,7 +391,7 @@ Examples
391
391
392
392
.. replacement:: method-name-and-link
393
393
394
- `ReplaceWith() <{+csharp-new- api-docs+}/MongoDB.Driver/MongoDB.Driver.PipelineStageDefinitionBuilder.ReplaceWith.html>`__
394
+ `ReplaceWith() <{+csharp-api-docs+}/MongoDB.Driver/MongoDB.Driver.PipelineStageDefinitionBuilder.ReplaceWith.html>`__
395
395
396
396
.. replacement:: stage-specific-info
397
397
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ Examples
120
120
121
121
.. replacement:: method-name-and-link
122
122
123
- `Sample() <{+csharp-new- api-docs+}/MongoDB.Driver/MongoDB.Driver.PipelineStageDefinitionBuilder.Sample.html>`__
123
+ `Sample() <{+csharp-api-docs+}/MongoDB.Driver/MongoDB.Driver.PipelineStageDefinitionBuilder.Sample.html>`__
124
124
125
125
.. replacement:: stage-specific-info
126
126
Original file line number Diff line number Diff line change @@ -347,7 +347,7 @@ Examples
347
347
348
348
.. replacement:: method-name-and-link
349
349
350
- `Set() <{+csharp-new- api-docs+}/MongoDB.Driver/MongoDB.Driver.PipelineStageDefinitionBuilder.Set.html>`__
350
+ `Set() <{+csharp-api-docs+}/MongoDB.Driver/MongoDB.Driver.PipelineStageDefinitionBuilder.Set.html>`__
351
351
352
352
.. replacement:: stage-specific-info
353
353
Original file line number Diff line number Diff line change @@ -988,7 +988,7 @@ Examples
988
988
989
989
.. replacement:: method-name-and-link
990
990
991
- `SetWindowFields() <{+csharp-new- api-docs+}/MongoDB.Driver/MongoDB.Driver.PipelineStageDefinitionBuilder.SetWindowFields.html>`__
991
+ `SetWindowFields() <{+csharp-api-docs+}/MongoDB.Driver/MongoDB.Driver.PipelineStageDefinitionBuilder.SetWindowFields.html>`__
992
992
993
993
.. replacement:: stage-specific-info
994
994
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ Examples
102
102
103
103
.. replacement:: method-name-and-link
104
104
105
- `Skip() <{+csharp-new- api-docs+}/MongoDB.Driver/MongoDB.Driver.PipelineStageDefinitionBuilder.Skip.html>`__
105
+ `Skip() <{+csharp-api-docs+}/MongoDB.Driver/MongoDB.Driver.PipelineStageDefinitionBuilder.Skip.html>`__
106
106
107
107
.. replacement:: stage-specific-info
108
108
Original file line number Diff line number Diff line change @@ -327,7 +327,7 @@ Examples
327
327
328
328
.. replacement:: method-name-and-link
329
329
330
- `Sort() <{+csharp-new- api-docs+}/MongoDB.Driver/MongoDB.Driver.PipelineStageDefinitionBuilder.Sort.html>`__
330
+ `Sort() <{+csharp-api-docs+}/MongoDB.Driver/MongoDB.Driver.PipelineStageDefinitionBuilder.Sort.html>`__
331
331
332
332
.. replacement:: stage-specific-info
333
333
Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ Examples
171
171
172
172
.. replacement:: method-name-and-link
173
173
174
- `SortByCount() <{+csharp-new- api-docs+}/MongoDB.Driver/MongoDB.Driver.PipelineStageDefinitionBuilder.SortByCount.html>`__
174
+ `SortByCount() <{+csharp-api-docs+}/MongoDB.Driver/MongoDB.Driver.PipelineStageDefinitionBuilder.SortByCount.html>`__
175
175
176
176
.. replacement:: stage-specific-info
177
177
Original file line number Diff line number Diff line change @@ -581,7 +581,7 @@ Examples
581
581
582
582
.. replacement:: method-name-and-link
583
583
584
- `UnionWith() <{+csharp-new- api-docs+}/MongoDB.Driver/MongoDB.Driver.PipelineStageDefinitionBuilder.UnionWith.html>`__
584
+ `UnionWith() <{+csharp-api-docs+}/MongoDB.Driver/MongoDB.Driver.PipelineStageDefinitionBuilder.UnionWith.html>`__
585
585
586
586
.. replacement:: stage-specific-info
587
587
Original file line number Diff line number Diff line change @@ -530,7 +530,7 @@ Examples
530
530
531
531
.. replacement:: method-name-and-link
532
532
533
- `Unwind() <{+csharp-new- api-docs+}/MongoDB.Driver/MongoDB.Driver.PipelineStageDefinitionBuilder.Unwind.html>`__
533
+ `Unwind() <{+csharp-api-docs+}/MongoDB.Driver/MongoDB.Driver.PipelineStageDefinitionBuilder.Unwind.html>`__
534
534
535
535
.. replacement:: stage-specific-info
536
536
@@ -548,7 +548,7 @@ Examples
548
548
:language: csharp
549
549
:dedent: 8
550
550
551
- You can use an `AggregateUnwindOptions <{+csharp-new- api-docs+}/MongoDB.Driver/MongoDB.Driver.AggregateUnwindOptions.html>`__
551
+ You can use an `AggregateUnwindOptions <{+csharp-api-docs+}/MongoDB.Driver/MongoDB.Driver.AggregateUnwindOptions.html>`__
552
552
object to customize the behavior of the ``Unwind()`` method.
553
553
The following example performs the same operation as the previous
554
554
example, but also includes the following options:
You can’t perform that action at this time.
0 commit comments