Skip to content

Commit 2fad3fe

Browse files
committed
heading fixes
1 parent 99ca385 commit 2fad3fe

File tree

2 files changed

+20
-16
lines changed

2 files changed

+20
-16
lines changed

docs/feature-compatibility.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ The following Eloquent methods are not supported in {+odm-short+}:
151151
- *Unsupported as MongoDB uses ObjectIDs*
152152

153153
* - Upserts
154-
- ✓ See :ref:`laravel-upsert`.
154+
- ✓ See :ref:`laravel-mongodb-query-builder-upsert`.
155155

156156
* - Update Statements
157157
- ✓
@@ -216,7 +216,7 @@ Eloquent Features
216216
- ✓
217217

218218
* - Upserts
219-
- ✓ See :ref:`laravel-upsert`.
219+
- ✓ See :ref:`laravel-mongodb-query-builder-upsert`.
220220

221221
* - Deleting Models
222222
- ✓

docs/query-builder.txt

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ of the ``year`` field for documents in the ``movies`` collections.
399399
.. _laravel-query-builder-aggregations:
400400

401401
Aggregations
402-
~~~~~~~~~~~~
402+
------------
403403

404404
The examples in this section show the query builder syntax you
405405
can use to perform **aggregations**. Aggregations are operations
@@ -417,7 +417,7 @@ aggregations to compute and return the following information:
417417
.. _laravel-query-builder-aggregation-groupby:
418418

419419
Results Grouped by Common Field Values Example
420-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
420+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
421421

422422
The following example shows how to use the ``groupBy()`` query builder method
423423
to retrieve document data grouped by shared values of the ``runtime`` field.
@@ -476,7 +476,7 @@ This example chains the following operations to match documents from the
476476
.. _laravel-query-builder-aggregation-count:
477477

478478
Number of Results Example
479-
^^^^^^^^^^^^^^^^^^^^^^^^^
479+
~~~~~~~~~~~~~~~~~~~~~~~~~
480480

481481
The following example shows how to use the ``count()``
482482
query builder method to return the number of documents
@@ -491,7 +491,7 @@ contained in the ``movies`` collection:
491491
.. _laravel-query-builder-aggregation-max:
492492

493493
Maximum Value of a Field Example
494-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
494+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
495495

496496
The following example shows how to use the ``max()``
497497
query builder method to return the highest numerical
@@ -507,7 +507,7 @@ value of the ``runtime`` field from the entire
507507
.. _laravel-query-builder-aggregation-min:
508508

509509
Minimum Value of a Field Example
510-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
510+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
511511

512512
The following example shows how to use the ``min()``
513513
query builder method to return the lowest numerical
@@ -523,7 +523,7 @@ collection:
523523
.. _laravel-query-builder-aggregation-avg:
524524

525525
Average Value of a Field Example
526-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
526+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
527527

528528
The following example shows how to use the ``avg()``
529529
query builder method to return the numerical average, or
@@ -539,7 +539,7 @@ the entire ``movies`` collection.
539539
.. _laravel-query-builder-aggregation-sum:
540540

541541
Summed Value of a Field Example
542-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
542+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
543543

544544
The following example shows how to use the ``sum()``
545545
query builder method to return the numerical total of
@@ -556,7 +556,7 @@ collection:
556556
.. _laravel-query-builder-aggregate-matched:
557557

558558
Aggregate Matched Results Example
559-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
559+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
560560

561561
The following example shows how to aggregate data
562562
from results that match a query. The query matches all
@@ -1035,16 +1035,20 @@ following MongoDB-specific write operations:
10351035
Upsert a Document Example
10361036
~~~~~~~~~~~~~~~~~~~~~~~~~
10371037

1038-
You can perform an upsert operation by taking either of the following
1039-
actions:
1038+
Starting in v4.7, you can perform an upsert operation by using either of
1039+
the following methods:
10401040

10411041
- Use the ``upsert()`` query builder method. When you use this method,
1042-
you can perform a batch upsert to change or insert multiple documents
1042+
you can perform a **batch upsert** to change or insert multiple documents
10431043
in one operation.
1044-
- Use the ``update()`` query builder method and specify the ``upsert`` option.
1044+
1045+
- Use the ``update()`` query builder method and specify the ``upsert``
1046+
option to update all documents that match the query filter or insert
1047+
one document if no documents are matched. Only this method is
1048+
supported in versions v4.6 and earlier.
10451049

10461050
Upsert Method
1047-
`````````````
1051+
^^^^^^^^^^^^^
10481052

10491053
The ``upsert()`` query builder method accepts the following parameters:
10501054

@@ -1079,7 +1083,7 @@ The ``upsert()`` query builder method returns the sum of the number of documents
10791083
operation updated, inserted, and modified.
10801084

10811085
Update Method
1082-
`````````````
1086+
^^^^^^^^^^^^^
10831087

10841088
The following example shows how to use the ``update()`` query builder method
10851089
and ``upsert`` option to update the matching document or insert one with the

0 commit comments

Comments
 (0)