NAME
Mongoose::Cursor - a Mongoose wrapper for MongoDB::Cursor
VERSION
version 0.01_02
DESCRIPTION
Extends Mongoose::Cursor.
Wraps MongoDB::Cursor's next
and all
methods, so that it expands a document into a class.
METHODS
For your convenience:
each
Iterates over a cursor, calling your sub.
Person->find->each( sub {
my $obj = shift;
# do stuff
# return undef to break out
return undef if $done;
});