Mongol::Entity
Person->collection()
my $id = $model->id(); my $current_id = $model->id( '12345' );
my $cursor = Person->find( { age => 30 }, {} );
my $model = Person->find( { name => 'John Doe' }, {} );
my $model = Person->retrieve( $id );
my $count = Person->count( { age => '30' }, {} );
my $bool = Person->exists( $id );
$model->age( 35 ); $model->save();
$model->remove();
Person->drop();
MongoDB::Collection
MooseX::ClassAttribute
To install Mongol, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mongol
CPAN shell
perl -MCPAN -e shell install Mongol
For more information on module installation, please visit the detailed CPAN module installation guide.