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.
619619
620620The ``readPreference()`` method accepts the following parameters:
621621
622- - ``mode``: (Required) A string value specifying the read preference
622+ - ``mode``: * (Required)* A string value specifying the read preference
623623 mode.
624624
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.
627627
628- - ``options``: (Optional) An array value specifying additional read preference options.
628+ - ``options``: * (Optional)* An array value specifying additional read preference options.
629629
630630.. tip::
631631
@@ -635,7 +635,7 @@ The ``readPreference()`` method accepts the following parameters:
635635
636636The following example queries for documents in which the value of the ``title``
637637field 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:
639639
640640.. tabs::
641641
Original file line number Diff line number Diff line change @@ -840,7 +840,7 @@ to use the following MongoDB-specific query operations:
840840- :ref:`Run MongoDB Query API operations <laravel-query-builder-whereRaw>`
841841- :ref:`Match documents that contain array elements <laravel-query-builder-elemMatch>`
842842- :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 >`
844844- :ref:`Match locations by using geospatial searches <laravel-query-builder-geospatial>`
845845
846846.. _laravel-query-builder-exists:
@@ -1042,9 +1042,9 @@ Specify a Read Preference Example
10421042You can control how the {+odm-short+} directs read operations to replica
10431043set members by setting a read preference.
10441044
1045- The following example queries the ``movie `` collection for documents
1045+ The following example queries the ``movies `` collection for documents
10461046in 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
10481048the query to secondary replica set members:
10491049
10501050.. literalinclude:: /includes/query-builder/QueryBuilderTest.php
You can’t perform that action at this time.
0 commit comments