NAME

ArangoDB::Cursor - An ArangoDB cursor

SYNOPSIS

my $cursor = $db->query('FOR u IN users RETURN u')->execute();
my @docs;
while( my $doc = $cursor->next ){
    push @docs, $doc;
}

DESCRIPTION

Instance of ArandoDB Cursor.

METHODS

new()

Constructor.

next()

Returns next document(Instance of ArangoDB::Document).

all()

Rreturns all documents in the cursor.(ARRAY reference).

The cursor on the server will be deleted implicitly.

delete()

Delete a cursor.

The cursor will automatically be destroyed on the server when the client has retrieved all documents from it. The client can also explicitly destroy the cursor at any earlier time using this method.

AUTHOR

Hideaki Ohno <hide.o.j55 {at} gmail.com>