Method |
Description |
|
all ( ) : array |
Convert the cursor instance to an array of Items. |
|
count ( ) : integer |
Counts the number of results for this cursor. |
|
first ( ) : mixed |
Returns the first element of the cursor. |
|
limit ( integer $amount ) : Mongolid\Cursor\CursorInterface |
Limits the number of results returned. |
|
skip ( integer $amount ) : Mongolid\Cursor\CursorInterface |
Skips a number of results. |
|
sort ( array $fields ) : Mongolid\Cursor\CursorInterface |
Sorts the results by given fields. |
|
toArray ( ) : array |
Return the raw cursor items. |
|