File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,18 @@ $this->embedsMany('Book', '_books');
1717
1818Read the full changelog at https://github.com/jenssegers/laravel-mongodb/releases/tag/v2.0.0
1919
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+
2032Installation
2133------------
2234
@@ -822,6 +834,17 @@ You can apply projections to your queries using the `project` method.
822834DB::collection('items')->project(array('tags' => array('$slice' => 1)))->get();
823835```
824836
837+ ** Projections with Pagination**
838+
839+ You can apply projections to your queries using the ` project ` method.
840+
841+ ``` php
842+ $limit = 25;
843+ $projections = array('id', 'name');
844+ DB::collection('items')->paginate($limit, $projections);
845+ ```
846+
847+
825848** Push**
826849
827850Add an items to an array.
You can’t perform that action at this time.
0 commit comments