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 75c2e7e commit 4b6a3d3Copy full SHA for 4b6a3d3
README.md
@@ -885,7 +885,8 @@ DB::collection('users')->where('name', 'John')
885
You can apply projections to your queries using the `project` method.
886
887
```php
888
-DB::collection('items')->project(['tags' => array('$slice' => 1)])->get();
+DB::collection('items')->project(['tags' => ['$slice' => 1]])->get();
889
+DB::collection('items')->project(['tags' => ['$slice' => [3, 7]]])->get();
890
```
891
892
**Projections with Pagination**
0 commit comments