Skip to content

Commit c4a5264

Browse files
authored
Merge pull request #1235 from daiduong47/master
Update README.md
2 parents 165bf3a + 4b6a3d3 commit c4a5264

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -976,7 +976,8 @@ DB::collection('users')->where('name', 'John')
976976
You can apply projections to your queries using the `project` method.
977977

978978
```php
979-
DB::collection('items')->project(['tags' => array('$slice' => 1]))->get();
979+
DB::collection('items')->project(['tags' => ['$slice' => 1]])->get();
980+
DB::collection('items')->project(['tags' => ['$slice' => [3, 7]]])->get();
980981
```
981982

982983
**Projections with Pagination**

0 commit comments

Comments
 (0)