File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -619,13 +619,13 @@ set a read preference by using the ``readPreference()`` method.
619
619
620
620
The ``readPreference()`` method accepts the following parameters:
621
621
622
- - ``mode``: (Required) A string value specifying the read preference
622
+ - ``mode``: * (Required)* A string value specifying the read preference
623
623
mode.
624
624
625
- - ``tagSets``: (Optional) An array value specifying key-value tags that correspond to
626
- the target replica set members.
625
+ - ``tagSets``: * (Optional)* An array value specifying key-value tags that correspond to
626
+ certain replica set members.
627
627
628
- - ``options``: (Optional) An array value specifying additional read preference options.
628
+ - ``options``: * (Optional)* An array value specifying additional read preference options.
629
629
630
630
.. tip::
631
631
@@ -635,7 +635,7 @@ The ``readPreference()`` method accepts the following parameters:
635
635
636
636
The following example queries for documents in which the value of the ``title``
637
637
field is ``"Carrie"`` and retrieves the results from secondary replica set
638
- members, or the primary member if no secondaries are available:
638
+ members or the primary member if no secondaries are available:
639
639
640
640
.. tabs::
641
641
Original file line number Diff line number Diff line change @@ -840,7 +840,7 @@ to use the following MongoDB-specific query operations:
840
840
- :ref:`Run MongoDB Query API operations <laravel-query-builder-whereRaw>`
841
841
- :ref:`Match documents that contain array elements <laravel-query-builder-elemMatch>`
842
842
- :ref:`Specify a cursor timeout <laravel-query-builder-cursor-timeout>`
843
- - :ref:`Specify a read preference <>`
843
+ - :ref:`Specify a read preference <laravel-query-builder-read-pref >`
844
844
- :ref:`Match locations by using geospatial searches <laravel-query-builder-geospatial>`
845
845
846
846
.. _laravel-query-builder-exists:
@@ -1042,9 +1042,9 @@ Specify a Read Preference Example
1042
1042
You can control how the {+odm-short+} directs read operations to replica
1043
1043
set members by setting a read preference.
1044
1044
1045
- The following example queries the ``movie `` collection for documents
1045
+ The following example queries the ``movies `` collection for documents
1046
1046
in which the ``runtime`` value is greater than ``240``. The example passes a
1047
- value of ``' secondary' `` to the ``readPreference()`` method, which sends
1047
+ value of ``" secondary" `` to the ``readPreference()`` method, which sends
1048
1048
the query to secondary replica set members:
1049
1049
1050
1050
.. literalinclude:: /includes/query-builder/QueryBuilderTest.php
You can’t perform that action at this time.
0 commit comments