The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

ArangoDB::Document - An ArangoDB document

DESCRIPTION

Instance of ArangoDB document.

METHODS

new($raw_doc)

Constructor.

id()

Returns identifer of the document.

revision()

Returns revision of the document.

collection_id()

Returns collection identifier of the document.

document_handle()

Returns document-handle.

content()

Returns content of the document.

get($attr_name)

Get the value of an attribute of the document

set($attr_name,$value)

Update the value of an attribute (Does not write to database)

fetch()

Fetch the document data from database.

save($with_rev_check)

Save the changes of document to database.

$with_rev_check is boolean flag. If it's true, the ArangoDB checks that the revision of the document. If there is a conflict, this method raise a error.

delete()

Delete the document from database.

any_edges()

Returns the list of edges starting or ending in the document.

in_edges()

Returns the list of edges ending in the document.

out_edges()

Returns the list of edges starting in the document.

AUTHOR

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