We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4db348d commit a69541fCopy full SHA for a69541f
tests/DocumentationExamplesTest.php
@@ -1004,7 +1004,10 @@ public function testChangeStreamExample_1_4()
1004
$this->assertMatchesDocument($expectedChange, $firstChange);
1005
1006
// Start Changestream Example 4
1007
- $pipeline = [['$match' => ['$or' => [['fullDocument.username' => 'alice'], ['operationType' => 'delete']]]]];
+ $pipeline = [
1008
+ ['$match' => ['fullDocument.username' => 'alice']],
1009
+ ['$addFields' => ['newField' => 'this is an added field!']],
1010
+ ];
1011
$changeStream = $db->inventory->watch($pipeline);
1012
$changeStream->rewind();
1013
0 commit comments