Skip to content

Commit 7469eb0

Browse files
committed
DOCSP-47950: Fix all operator section
1 parent 536327d commit 7469eb0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

docs/includes/query-builder/QueryBuilderTest.php

Lines changed: 1 addition & 1 deletion
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('cast', 'all', ['Meg Ryan', 'Tom Hanks'])
355355
->get();
356356
// end query all
357357

docs/query-builder.txt

Lines changed: 2 additions & 1 deletion
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 ``cast`` field containing all the specified
873+
array values:
873874

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

0 commit comments

Comments
 (0)