NAME

MongoDB::Cursor - A cursor/iterator for Mongo query results

VERSION

version 0.01

SYNOPSIS

while (my $object = $cursor->next) {
    ...
}

my @objects = $cursor->all;

METHODS

next

while (my $object = $cursor->next) {
    ...
}

Returns the next object in the cursor. Will automatically fetch more data from the server if necessary. Returns undef if no more data is available.

all

my @objects = $cursor->all;

Returns a list of all objects in the result.

AUTHOR

Florian Ragwitz <rafl@debian.org>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2009 by 10Gen.

This is free software, licensed under:

The Apache License, Version 2.0, January 2004