NAME
Mongol::Cursor - Mongol cursor
SYNOPSIS
DESCRIPTION
ATTRIBUTES
type
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.
result
my $result = $cursor->result();
The original MongoDB::QueryResult on which this cursor wraps.
METHODS
all
my @objects = $cursor->all();
Returns all the cursor result as an array of objects.
has_next
my $bool = $cursor->has_next();
Checks if there are any objects in the cursor.
next
my $object = $cursor->next();
Returns the next object in the cursor.