Mongol::Cursor - Mongol cursor
my $type = $cursor->type()
The class type associated for this cursor. All documents retrieved with this cursor will be automatically deserialized using this class definition.
my $result = $cursor->result();
The original MongoDB::QueryResult on which this cursor wraps.
my @objects = $cursor->all();
Returns all the cursor result as an array of objects.
my $bool = $cursor->has_next();
Checks if there are any objects in the cursor.
my $object = $cursor->next();
Returns the next object in the cursor.
MongoDB::Cursor
MongoDB::QueryResult
To install Mongol, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mongol
CPAN shell
perl -MCPAN -e shell install Mongol
For more information on module installation, please visit the detailed CPAN module installation guide.