Skip to content

Commit 89772e2

Browse files
authoredMar 6, 2025
DOCSP-47950: Fix all operator section (#3308)
* DOCSP-47950: Fix all operator section * review feedback
1 parent 536327d commit 89772e2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed
 

‎docs/includes/query-builder/QueryBuilderTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ public function testAll(): void
351351
{
352352
// begin query all
353353
$result = DB::table('movies')
354-
->where('movies', 'all', ['title', 'rated', 'imdb.rating'])
354+
->where('writers', 'all', ['Ben Affleck', 'Matt Damon'])
355355
->get();
356356
// end query all
357357

‎docs/query-builder.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,8 @@ Contains All Fields Example
869869

870870
The following example shows how to use the ``all`` query
871871
operator with the ``where()`` query builder method to match
872-
documents that contain all the specified fields:
872+
documents that have a ``writers`` array field containing all
873+
the specified values:
873874

874875
.. literalinclude:: /includes/query-builder/QueryBuilderTest.php
875876
:language: php

0 commit comments

Comments
 (0)