BigObject PolyDB::Cursor

from application common

Database cursor over the results of a query operation. Objects can be retrieved in a loop, fetching one at a time, or all at once.

Example:

Process results of a query in a loop

 > for (my $cursor = $collection->find({}); $cursor->has_next; ) {
 >   my $object = $cursor->next;
 >   do_something($object);
 > }

Retrieve all objects at once

 > @with_100_vertices = $collection->find({ N_VERTICES => 100 })->all;