Commit 8a23238f authored by Jesper Wallin's avatar Jesper Wallin Committed by Jeremy Mikola

Fix typo in query projection example

parent 6b2aa21a
...@@ -136,7 +136,7 @@ $collection = (new MongoDB\Client)->demo->zips; ...@@ -136,7 +136,7 @@ $collection = (new MongoDB\Client)->demo->zips;
$document = $collection->findOne( $document = $collection->findOne(
['_id' => '10011'], ['_id' => '10011'],
['projection' => ['pop => 1']] ['projection' => ['pop' => 1]]
); );
var_dump($document); var_dump($document);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment