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

NAME

Arango::Tango::Collection - ArangoDB Collection object

VERSION

version 0.009

USAGE

This class should not be created directly. The Arango::Tango module is responsible for creating instances of this object.

Arango::Tango::Collection answers to the following methods:

create_document

   $collection->create_document( { 'Hello' => 'World' } );
   $collection->create_document( q!"{ "Hello": "World" }! );

Stores a document in specified collection

document_paths

   my $paths = $collection->document_paths;

Lists all collection document as their paths in the database. Returns a hash reference.

get_access_level

    my $perms = $db->get_access_level($user)

Fetch the collection access level for a specific user.

set_access_level

    $db->set_access_level($user, 'none')

Sets the collection access level for a specific user.

clear_access_level

    $db->clear_access_level($user, 'none')

Clears the collection access level for a specific user.

AUTHOR

Alberto Simões <ambs@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2019 by Alberto Simões.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.