MongoDB::DeleteResult - MongoDB deletion result object
version v0.999.999.1
my $result = $coll->delete( { _id => $oid } ); if ( $result->acknowledged ) { ... }
This class encapsulates the results from a deletion operation.
Indicates whether this write result was ackowledged. If not, then all other members of this result will be zero or undefined.
The number of documents that matched the filter.
Throws an error if write errors or write concern errors occurred.
Throws a MongoDB::WriteError if count_write_errors is non-zero; otherwise returns 1.
count_write_errors
Throws a MongoDB::WriteConcernError if count_write_concern_errors is non-zero; otherwise returns 1.
count_write_concern_errors
David Golden <david@mongodb.com>
Mike Friedman <friedo@friedo.com>
Kristina Chodorow <k.chodorow@gmail.com>
Florian Ragwitz <rafl@debian.org>
This software is Copyright (c) 2015 by MongoDB, Inc..
This is free software, licensed under:
The Apache License, Version 2.0, January 2004
To install MongoDB, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MongoDB
CPAN shell
perl -MCPAN -e shell install MongoDB
For more information on module installation, please visit the detailed CPAN module installation guide.