From 2eb10d43c11fc963627806452dcb36f8d4e7a971 Mon Sep 17 00:00:00 2001 From: norareidy Date: Thu, 30 Jan 2025 14:22:32 -0500 Subject: [PATCH] edits --- docs/fundamentals/read-operations.txt | 10 +++++----- docs/query-builder.txt | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/fundamentals/read-operations.txt b/docs/fundamentals/read-operations.txt index 4a0d6731c..cfaf2bb99 100644 --- a/docs/fundamentals/read-operations.txt +++ b/docs/fundamentals/read-operations.txt @@ -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:: diff --git a/docs/query-builder.txt b/docs/query-builder.txt index f6cdce148..a361bf9fc 100644 --- a/docs/query-builder.txt +++ b/docs/query-builder.txt @@ -840,7 +840,7 @@ to use the following MongoDB-specific query operations: - :ref:`Run MongoDB Query API operations ` - :ref:`Match documents that contain array elements ` - :ref:`Specify a cursor timeout ` -- :ref:`Specify a read preference <>` +- :ref:`Specify a read preference ` - :ref:`Match locations by using geospatial searches ` .. _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