Skip to content

Commit 2eb10d4

Browse files
committed
edits
1 parent 89b4a41 commit 2eb10d4

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

docs/fundamentals/read-operations.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -619,13 +619,13 @@ set a read preference by using the ``readPreference()`` method.
619619

620620
The ``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

636636
The following example queries for documents in which the value of the ``title``
637637
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:
639639

640640
.. tabs::
641641

docs/query-builder.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
10421042
You can control how the {+odm-short+} directs read operations to replica
10431043
set 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
10461046
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
10481048
the query to secondary replica set members:
10491049

10501050
.. literalinclude:: /includes/query-builder/QueryBuilderTest.php

0 commit comments

Comments
 (0)