From 89772e239af7d9d3f51d29816ace06a34ca260ef Mon Sep 17 00:00:00 2001 From: Nora Reidy Date: Thu, 6 Mar 2025 10:38:47 -0500 Subject: [PATCH] DOCSP-47950: Fix all operator section (#3308) * DOCSP-47950: Fix all operator section * review feedback --- docs/includes/query-builder/QueryBuilderTest.php | 2 +- docs/query-builder.txt | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/includes/query-builder/QueryBuilderTest.php b/docs/includes/query-builder/QueryBuilderTest.php index 574fe060f..3f7ea2274 100644 --- a/docs/includes/query-builder/QueryBuilderTest.php +++ b/docs/includes/query-builder/QueryBuilderTest.php @@ -351,7 +351,7 @@ public function testAll(): void { // begin query all $result = DB::table('movies') - ->where('movies', 'all', ['title', 'rated', 'imdb.rating']) + ->where('writers', 'all', ['Ben Affleck', 'Matt Damon']) ->get(); // end query all diff --git a/docs/query-builder.txt b/docs/query-builder.txt index c641323dc..68a9b2102 100644 --- a/docs/query-builder.txt +++ b/docs/query-builder.txt @@ -869,7 +869,8 @@ Contains All Fields Example The following example shows how to use the ``all`` query operator with the ``where()`` query builder method to match -documents that contain all the specified fields: +documents that have a ``writers`` array field containing all +the specified values: .. literalinclude:: /includes/query-builder/QueryBuilderTest.php :language: php