Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
edits
Browse files Browse the repository at this point in the history
norareidy committed Jan 30, 2025

Verified

This commit was signed with the committer’s verified signature.
tushar-saxena-yral Tushar Saxena (yral)
1 parent 89b4a41 commit 2eb10d4
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions docs/fundamentals/read-operations.txt
Original file line number Diff line number Diff line change
@@ -619,13 +619,13 @@ set a read preference by using the ``readPreference()`` method.

The ``readPreference()`` method accepts the following parameters:

- ``mode``: (Required) A string value specifying the read preference
- ``mode``: *(Required)* A string value specifying the read preference
mode.

- ``tagSets``: (Optional) An array value specifying key-value tags that correspond to
the target replica set members.
- ``tagSets``: *(Optional)* An array value specifying key-value tags that correspond to
certain replica set members.

- ``options``: (Optional) An array value specifying additional read preference options.
- ``options``: *(Optional)* An array value specifying additional read preference options.

.. tip::

@@ -635,7 +635,7 @@ The ``readPreference()`` method accepts the following parameters:

The following example queries for documents in which the value of the ``title``
field is ``"Carrie"`` and retrieves the results from secondary replica set
members, or the primary member if no secondaries are available:
members or the primary member if no secondaries are available:

.. tabs::

6 changes: 3 additions & 3 deletions docs/query-builder.txt
Original file line number Diff line number Diff line change
@@ -840,7 +840,7 @@ to use the following MongoDB-specific query operations:
- :ref:`Run MongoDB Query API operations <laravel-query-builder-whereRaw>`
- :ref:`Match documents that contain array elements <laravel-query-builder-elemMatch>`
- :ref:`Specify a cursor timeout <laravel-query-builder-cursor-timeout>`
- :ref:`Specify a read preference <>`
- :ref:`Specify a read preference <laravel-query-builder-read-pref>`
- :ref:`Match locations by using geospatial searches <laravel-query-builder-geospatial>`

.. _laravel-query-builder-exists:
@@ -1042,9 +1042,9 @@ Specify a Read Preference Example
You can control how the {+odm-short+} directs read operations to replica
set members by setting a read preference.

The following example queries the ``movie`` collection for documents
The following example queries the ``movies`` collection for documents
in which the ``runtime`` value is greater than ``240``. The example passes a
value of ``'secondary'`` to the ``readPreference()`` method, which sends
value of ``"secondary"`` to the ``readPreference()`` method, which sends
the query to secondary replica set members:

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

0 comments on commit 2eb10d4

Please sign in to comment.