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.
2 parents 165bf3a + 4b6a3d3 commit c4a5264Copy full SHA for c4a5264
README.md
@@ -976,7 +976,8 @@ DB::collection('users')->where('name', 'John')
976
You can apply projections to your queries using the `project` method.
977
978
```php
979
-DB::collection('items')->project(['tags' => array('$slice' => 1]))->get();
+DB::collection('items')->project(['tags' => ['$slice' => 1]])->get();
980
+DB::collection('items')->project(['tags' => ['$slice' => [3, 7]]])->get();
981
```
982
983
**Projections with Pagination**
0 commit comments