MongoDB::UpdateResult - MongoDB update result object
version v0.999.998.5
my $result = $coll->update( @parameters ); if ( $result->acknowledged ) { ... }
This class encapsulates the results from an update or replace operations.
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.
The number of documents that were modified. Note: this is only available from MongoDB version 2.6 or later. It will return undef from earlier servers.
undef
The identifier of the inserted document if an upsert took place. If no upsert took place, it returns undef.
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@mongodb.com>
Kristina Chodorow <kristina@mongodb.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.