File tree 1 file changed +21
-0
lines changed
1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,18 @@ $this->embedsMany('Book', '_books');
17
17
18
18
Read the full changelog at https://github.com/jenssegers/laravel-mongodb/releases/tag/v2.0.0
19
19
20
+ Table of contents
21
+ -----------------
22
+ * [ Installation] ( #installation )
23
+ * [ Configuration] ( #configuration )
24
+ * [ Eloquent] ( #eloquent )
25
+ * [ Optional: Alias] ( #optional-alias )
26
+ * [ Query Builder] ( #query-builder )
27
+ * [ Schema] ( #schema )
28
+ * [ Extensions] ( #extensions )
29
+ * [ Troubleshooting] ( #troubleshooting )
30
+ * [ Examples] ( #examples )
31
+
20
32
Installation
21
33
------------
22
34
@@ -822,6 +834,15 @@ You can apply projections to your queries using the `project` method.
822
834
DB::collection('items')->project(array('tags' => array('$slice' => 1)))->get();
823
835
```
824
836
837
+ ** Projections with Pagination**
838
+
839
+ ``` php
840
+ $limit = 25;
841
+ $projections = array('id', 'name');
842
+ DB::collection('items')->paginate($limit, $projections);
843
+ ```
844
+
845
+
825
846
** Push**
826
847
827
848
Add an items to an array.
You can’t perform that action at this time.
0 commit comments